Currently, NPK is using Uglify-JS to do code protection, something's like minimizing and obfuscation.
We are implementing a feature that putting JavaScript in C++ code and make it become Node.js native module. I think it could do more things that's like converting JavaScript to pure C++ code in future. :-S BTW, another idea is, compiling JavaScript to bytecode and store it in native module. Convert it to JavaScript for V8 in runtime. I'm not sure whether it works or not. Fred 2013/5/11 mscdex <[email protected]> > On May 11, 2:03 am, Fred Chien <[email protected]> wrote: > > NPK aims to package project which is based on Node.js, and bundle all > > JavaScript files to make all in one file, even protect source code. > > How does it protect the source code? What is to stop someone from > simply calling toString() on a function? > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
