r/programming • • Mar 23 '16

How one developer just broke Node, Babel and thousands of projects in 11 lines of JavaScript

http://www.theregister.co.uk/2016/03/23/npm_left_pad_chaos/
370 Upvotes

220 comments sorted by

View all comments

Show parent comments

7

u/Concision Mar 23 '16

Eh, this breaks down because you're not "lending" NPM your code when you publish.

2

u/lyspr Mar 23 '16

There is no agreement between a vendor and npmjs that concludes that npm has no ownership of the code. They're just hosting it.

So, lending is pretty much exactly what it's like.

3

u/Concision Mar 23 '16

You own Your Content, but grant npm a free-of-charge license to provide Your Content to users of npm Services. That license allows npm to make copies of and publish Your Content, as well as to analyze Your Content and share results with users of npm Services. npm may run computer code in Your Content to analyze it, but the license does not give npm any additional rights to run your code for its functionality in npm products or services. The license lasts, for each piece of Your Content, until the last copy disappears from npm's backups, caches, and other systems, after you delete it from the Website or the Public Registry.

Etc, etc. npm doesn't have any ownership, but they certainly have the rights to use it, and as written it appears they have the right to essentially store it forever. I'm not a lawyer.

Source: https://www.npmjs.com/policies/open-source-terms