1.1.1 • Published 4 years ago
nodeco v1.1.1
nodeco
Instalation
npm i -g nodeco
Usage
Usage: nodeco [options] <input-file>
Options:
-s, --secret <secret> Specify secret key to encrypt project
-o --out <output> Output directory for build (defaults to output)
-h, --help display help for command
Eg:
nodeco index.js -s MySecret -o output
Run compiled project
node output/index.js
Notes
- after running command it creates output directory (defaults to output).
├── index.js
└── src
├── index.jsco
└── nodeco.js
- Your project compiles and encrypted to src/index.jsco.
- Secret is saved in .env file.
- index.js file get secret from .env, and run project