News for hackers. Stuff that matters.
Re:Node 11.0 by depr on Wednesday October 24, 2018 @05:06AM (#18290802)
Node.js can be used as an alternative to Python if you want to use Javascript instead of Python. It can run as a webserver, like Python. npm is a package manager for Node.js. It manages dependencies, and dependencies of dependencies, for Node.js projects.

The JS you can put on a CDN is client-side JS. You can download the source files and host them, or use a bundler such as https://webpack.js.org to compile them into a single file.

The advantage of any package manager over downloading source files is easy of use, you don't clog up your code repository with old files, etc.

Re:Node 11.0 by me_bx on Wednesday October 24, 2018 @07:15AM (#18291358)
+1

In addition, since v6 [0], npm audits dependencies for security vulnerabilities, which is really useful to keep projects safe.

[0]: https://blog.npmjs.org/post/173719309445/npm-audit-identify-...

Re:Node 11.0 by Bishonen88 on Wednesday October 24, 2018 @05:16AM (#18290844)
Thanks a lot for the clear explanation!