简体   繁体   English

什么是cdnjs与npmjs之间的差异

[英]Whats the diff between cdnjs vs npmjs

What is the difference between cdnjs vs npmjs? cdnjs和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. 我是Javascript和编程的新手,所以这可能是一个真正的新问题,并且可能存在真正的巨大差异。

But what is it, the difference? 但它是什么,区别? And is npm a type of CDN (content delivery network)? npm是一种CDN(内容分发网络)吗?

npmjs(Node Package Manager) is repository consisting node modules/packages. npmjs(节点包管理器)是包含节点模块/包的存储库。 you can search and download node modules from there. 您可以从那里搜索和下载节点模块。

cdnjs is Content Delivery Network for JavaScript library files. cdnjs是JavaScript库文件的Content Delivery Network。 You can add reference of JavaScript libraries from cdnjs without requiring them to be on your server. 您可以从cdnjs添加JavaScript库的引用,而无需将它们放在您的服务器上。

npmjs == node js deps // server side npmjs == node js deps // 服务器

CDN == your browser deps // client side CDN ==您的浏览器deps // 客户

in simple words 用简单的话说

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 许多CDNjs与一个缩小的本地js - Many CDNjs vs one minified local js nextElementSibling与nextSibling有什么区别 - Whats the difference between nextElementSibling vs nextSibling JS,猫鼬,V型和V型之间有什么区别。 类型? - JS, Mongoose, whats the difference between Type Vs. type? 在Javascript中调用函数loadText和loadText()之间的区别是什么? - Whats the difference between calling function loadText vs loadText() in Javascript? 闭包和这个有什么区别 - whats the difference between closures and this 将箭头函数分配给变量后与直接导出箭头函数之间有什么区别? - Whats a difference between exporting arrow function after assigning it to variable vs export it directly? Angular指令:控制器的作用域与链接函数的作用域之间有什么区别? - Angular directive: whats the difference between scope in controller vs scope in link function? 具有复杂名称的全局变量与用于搜索的输入字段之间的真正区别是什么? - whats the real difference between a global variable with complex name VS an input field used for searching? nomsdb 和 gundb 有什么区别 - Whats the difference between nomsdb and gundb DISPHTMLUListElement和HTMLUListElement有什么区别? - Whats the difference between a DISPHTMLUListElement and HTMLUListElement?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM