node.js - Code Protection?

后端 未结 13 2123
感动是毒
感动是毒 2020-11-29 15:21

I want to use node.js in my next project, but my boss does not like that our competitors can read the source code.

Is there a way to protect the JavaScript code?

13条回答
  •  借酒劲吻你
    2020-11-29 16:14

    There is no way you can be absolutely sure that nobody will be able to read your code. You could use obfuscation or minification, which can make it significantly harder to decode your code, though. One example of an obfuscator/minifier is Google's Closure Compiler for JavaScript.

提交回复
热议问题