4 ms·
Does NPM require you to only publish open source code? Can I publish a package that allows you to download it from NPM but requires you to get a license from me
by tomjen3 11y ago
Does NPM require you to only publish open source code? Can I publish a package that allows you to download it from NPM but requires you to get a license from me to run it? How about a limited open license that only allows straight white women to run the software?
- steveklabnik 11y agoThey do not. I am speaking solely about the usual open source licenses here, which are the vast, vast majority of packages. Your hypothetical limited license is not open source nor free software, so it's out of the scope of my point here. If you did publish some code on npm with such a license, their TOS covers npm's ability to distribute that code to end-users, who may or may not be allowed to actually run your code, per the license. But then your issue would be with those users, not npm Inc.
- michaelmrose 11y agoWouldn't it be a bit unrealistic to try to enforce this?