0.7.0 • Published 4 years ago

path-shell v0.7.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

path-shell

Nodejs wrapper around files existing on root.

[Build Status https://travis-ci.com/Jithinqw/path-shell.svg?branch=master)]

Installation

Install using npm i path-shell --save.

Usage

const pathShell = require('path-shell');
const mode = 'json'
//get history
console.log(pathShell.history(mode));
//=>{"0":node index.js}

//get npm terminal history
const mode= 'array'
console.log(pathShell.npmHistory(mode));
//=>['const user = require('express')();']

//get file contents of any file in $PATH
const mode = 'array';
console.log(pathShell.anyFile('.pgAdmin4.startup.log', mode));
//<-----pg admin data-------->

// list files in the root folder
console.log(pathShell.listFile());
// 'npm.log', 'bashrc.log'

Currently supports

  • Text (default)
  • Array
  • JSON

Running tests

You can run tests by running npm test.

0.5.3

4 years ago

0.5.0

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.4.0

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.1.1

4 years ago

0.0.1

4 years ago