nodeco
v1.1.1
Published
compile and encrypt js project to one file
Readme
nodeco
nodeco, command-line tool to compile, encrypt node.js project.
Compile project and encrypt project into single file: src/index.jsco
Run compiled project with index.js located in output directory. index.js get secret from .env file.
if you have .env file in your project root it copy into output dir. nodeco secret append to it.
Usage
Instalation
npm i -g nodecoUsage
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 commandEg:
nodeco index.js -s MySecret -o outputRun compiled project
node output/index.jsNotes
- 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
