node-shell-async

0.0.3 • Public • Published

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

/node-shell-async/

    Package Sidebar

    Install

    npm i node-shell-async

    Weekly Downloads

    10

    Version

    0.0.3

    License

    ISC

    Unpacked Size

    17.5 kB

    Total Files

    10

    Last publish

    Collaborators

    • leehyunggeun