Node.js:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
无编辑摘要
 
(未显示同一用户的5个中间版本)
第135行: 第135行:
|}
|}
== 模块类型 ==
== 模块类型 ==
* CJS: CommonJS
* [[/CJS|CJS]]: CommonJS
* AMD: Asynchronous Module Definition
* [[/AMD|AMD]]: Asynchronous Module Definition
* UMD: Universal Module Definition
* [[/UMD|UMD]]: Universal Module Definition
* ESM:  
* [[/ESM|ESM]]: ECMAScript modules
* IIFF:  
* [[/IIFF|IIFF]]: Immediately Invoked Function Expression
* systemjs:
* [[/systemjs|systemjs]]:
* [[/Revealing|Revealing]]:


== 框架 ==
== 框架 ==
第157行: 第158行:
{| class="wikitable"
{| class="wikitable"
|-
|-
| [[/npm|npm]] || [[/npx|npx]] || [[/yarn|yarn]] || [[/pnpm/pnpm]]|| [[/lerna|lerna]] || [[/monorepo|monorepo]] || [[/Node-pre-gyp|node-pre-gyp]]
| [[/npm|npm]] || [[/npx|npx]] || [[/yarn|yarn]] || [[/pnpm|pnpm]]|| [[/lerna|lerna]] || [[/monorepo|monorepo]] || [[/Node-pre-gyp|node-pre-gyp]]
|}
|}


第247行: 第248行:
=== 单位换算 ===
=== 单位换算 ===
==== base64 - kb ====
==== base64 - kb ====
{{leftrightflex|<syntaxhighlight lang="javascript">
{{Double-columns|<syntaxhighlight lang="javascript">
const size = (base64) => {
const size = (base64) => {
   return (base64.length/1024).toFixed(2);
   return (base64.length/1024).toFixed(2);