node.js - Code Protection?

后端 未结 13 2152
感动是毒
感动是毒 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:05

    Server side javascript code is completely closed source. No-one can read it.

    Client side javascript code is completely open source. Everyone can read it.

    For the latter you can do nothing but the same applies for RoR, ASP.NET, PHP, etc.

    The actual server code is closed unless you publicly make it available.

    If your making a library and trying to sell it as 3rd party source then it's open and can be stolen. Of course you can sue them for copyright breach.

    There are various big companies like extjs which sell libraries which could be stolen that's why what they actually sell you is the code and a support service.

    Most commercial projects build on node are services.

提交回复
热议问题