Kerwen Blog

Stay Hungry Stay Foolish

pnpm 关掉 syslink

相比于npm,pnpm 能显著提高包的下载速度。但如果查看node module文件夹,会发现很多module文件夹都带了link图标。这是因为pnpm使用了syslink,不管你有多少个project使用了这个module,pnpm只下载一份,然后用syslink将其连接到所需要的project中。 可以使用命令pnpm store path来查看pnpm的缓存文件夹。 Syslink...

Node SEA

官方文档 官方的文档直接机翻成汉语不像人话,尝试以自己理解的方式翻译了一下。 生成单执行程序 Node.js 支持创建单个可执行应用程序,方法是注入由 Node.js 准备的 blob,其中可以包含捆绑脚本, 将js文件转为二进制文件。在启动过程中,程序会检查是否有任何内容注入。如果找到 blob,它将执行 blob 中的脚本。否则 Node.js 像往常一样运行。 blob 关于什么是...

Restify

REST REST是REpresentational State Transfer(表述性状态转移)的缩写。 Restify restify 是一个 NodeJS 模块,可以让你创建正确的 REST Web Services。它借鉴了很多 express 的设计,restify比起express更专注于REST服务,去掉了express中的template, render等功能,同时强化了...

Fitness

健身计划 无分化 第一次 第二次 第三次 深蹲 2组10次 剪蹲 4组20次 深蹲 2组10次 罗马尼亚硬拉 2组10次 俯卧撑 2组10次 罗马尼亚硬拉 2组10次 杠铃卧推 2...

TransactionOption

TransactionOption用于指定组件请求的自动事务类型。有以下5个选项: Option Value Description1 Description2 Description3 Disabled 0 忽略当前上下文中的任何事务。 ...

Wix remove folder

Reference WiX工具集:带有RemoveFolderEx的ICE03无效标识符 How To Remove Files and Folders when Uninstalling with WiX

Node SEA

Reference https://stackoverflow.com/questions/78209775/with-node-sea-how-to-pack-node-modules-into-executable

CommonJS vs ECMAScript

Reference CommonJS模块和ECMAScript模块 CommonJS 与 Node.js 中的 ES 模块

electron-builder

用于打包和构建基于macOS,Windows和Linux的, 带自动更新的Electron App。 Reference electron-builder console.log doesn’t work in Windows Portable executable

TypeScript使用Winston

Reference TypeScript 使用TypeScript中的Winston Winston Logger With Typescript Winston and TypeScript - trouble creating custom logger