Whats the diff between cdnjs vs npmjs

2019-05-14 00:59发布

What is the difference between cdnjs vs npmjs? Im new to Javascript and programming in general so this probably is a real newb question and there's probably a real big difference.

But what is it, the difference? And is npm a type of CDN (content delivery network)?

2条回答
狗以群分
2楼-- · 2019-05-14 01:58

npmjs == node js deps // server side

CDN == your browser deps // client side

in simple words

查看更多
爷、活的狠高调
3楼-- · 2019-05-14 02:04

npmjs(Node Package Manager) is repository consisting node modules/packages. you can search and download node modules from there.

cdnjs is Content Delivery Network for JavaScript library files. You can add reference of JavaScript libraries from cdnjs without requiring them to be on your server.

查看更多
登录 后发表回答