node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »

@neos21/req-cmd

@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