require() API and CLI in one JS.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
index.js
package.json

README.md

@neos21/req-cmd

require() API and CLI in one JS.

This npm package is made from one file index.js only.

How to use

require() API

const reqCmd = require('@neos21/req-cmd');

reqCmd();

// -> '@neos21/req-cmd by Neo (@Neos21) http://neo.s21.xrea.com/'

CLI

$ npm install -D @neos21/req-cmd

Add npm-scripts:

{
  "name": "test-project",
  "scripts": {
    "exec": "req-cmd"
  },
}
$ npm run exec

> test-project@0.0.0 exec
> req-cmd

@neos21/req-cmd by Neo (@Neos21) http://neo.s21.xrea.com/

Author

Neo (@Neos21)

Links