An example of JavaScript code protection.
This repository contains an example of JavaScript code protection using javascript-obfuscator, bytenode and node-packer.
- Clone this repo and change directory to it.
- Install the dependencies using
npm install
. - Make sure you have installed node-packer: https://github.com/pmq20/node-packer OR https://github.com/slee047/node-packer (For releases after Node.js 8.3.0)
npm run obfuscate
: obfuscate theindex.js
toindex-obfuscated.js
npm run bytenode
: compile theindex-obfuscated.js
toindex-obfuscated.jsc
npm run bytenode:run
: run theindex-obfuscated.jsc
npm run nodec
: package your Node.js projectnpm run build
: package your Node.js project into an executable that is obfuscated and compiled