简体   繁体   中英

Whats the diff between cdnjs vs npmjs

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)?

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.

npmjs == node js deps // server side

CDN == your browser deps // client side

in simple words

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM