Lock your Node.js project into an executable.
npm install -g lockjs
- One binary executable.
- Capable to handle the C++ addons.
- Capable to handle the a lot
fs
methods which not use file descriptor. - Always run with the latest Node.js. (link the shared library at compiling time)
$ lockjs lock path/to/project path/to/project/lib/index.js ./project.locked
// ....
// [lockjs] Locked file: "project.locked".
// [lockjs] Key: "yourPublicKey".
$ lockjs gen ./project.locked ./app.o yourPublicKey
export `lockjs link`
$ ./app.o
- Mac OS X
- Linux 64 bit
- Linux 32 bit
- clang
- Node.js > 4
Usage: lockjs [options] [command]
Commands:
lock <projectPath> <entryPoint> <dest> lock specified node.js project and generate a public key
gen <packedProject> <dest> <publicKey> generate a executable from the locked and the public key
install install latest node.js header files and shared library
Options:
-h, --help output usage information
-V, --version output the version number