Skip to content

alipirpiran/nodeco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodeco

License: MIT Telegram


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 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).
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

About

CLI Tool to compile and encrypt Node.js project

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors