1.0.7 • Published 6 years ago

shelli v1.0.7

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

shelli

Execute terminal commands the easy way.

Installation

npm install shelli

Usage

var shell = require('shelli');

shell.cd('path'); // Change directories

shell.pwd(); // Returns the current path

shell.cat('file'); // View the contents of a file

shell.echo('echo'); // Echo something

shell.ls(); // List files/folders in your directory

shell.exec('npm install shelli'); // Execute a command

shell.wget('http://npmjs.com'); // Download a website to your current directory

shell.clear(); // Clear your terminal

shell.find('index.js'); // Checks if a file exists

shell.mkdir('create/a/directory'); // Create a directory or check if one exists

shell.exists('index.js'); // Returns true or false

// Examples:

shell.mkdir('directory'); // Creates a directory called "directory" and returns
// mkdir: test: File exists
// if it already exists

if (shell.exists('index.js')) {
    console.log('exists');
} else {
    console.log('does not exist')
}
1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago