node-shell-async
v0.0.3
Published
Node Shell Asynch
Downloads
8
Maintainers
Readme
Node Shell Async
You can use shell command in Node.js
Getting Started
Install
$ npm i --save node-shell-async
Usage
const NSH = require('node-shell-script');
const nsh = new NSH();
nsh.date().then((data) => console.log(data));
/// 2019년 10월 9일 수요일 14시 40분 20초 KST
API
- date
- show current date and time
- cal
- show calendar with current date
- df
- show disk information and available storage
- pwd (Print Working Directory)
- show curent working directory
- ls
- show file and sub directories of current directory
- file
- show file type
- less
- show file content as text of ASCII typew
/* File System */
- cp
- copy file
TODO
- free
- show memory information
- command not found