sheet.lol
SheetJS 库的权威来源是 https://cdn.sheetjs.com 。不幸的是,某些第三方工具不支持主分发点上托管的 NodeJS 包的 URL 模式。
¥The authoritative source for SheetJS libraries is https://cdn.sheetjs.com . Unfortunately, some third-party tools do not support the URL pattern for NodeJS packages hosted on the main distribution point.
https://sheet.lol 是一个镜像,它对 NodeJS 包使用了不同的 URL 方案。镜像由 SheetJS LLC 维护。
¥https://sheet.lol is a mirror that uses a different URL scheme for NodeJS packages. The mirror is maintained by SheetJS LLC.
强烈建议尽可能使用 https://cdn.sheetjs.com!
¥It is strongly recommended to use https://cdn.sheetjs.com when possible!
NodeJS 包
¥NodeJS Packages
软件包 tarball 在 https://sheet.lol 上可用。
¥Package tarballs are available on https://sheet.lol.
https://sheet.lol/balls/xlsx-0.20.3.tgz is the URL for version 0.20.3
可以使用包管理器直接安装 Tarball:
¥Tarballs can be directly installed using a package manager:
- npm
- pnpm
- Yarn
npm rm --save xlsx
npm i --save https://sheet.lol/balls/xlsx-0.20.3.tgz
pnpm rm xlsx
pnpm install --save https://sheet.lol/balls/xlsx-0.20.3.tgz
yarn remove xlsx
yarn add https://sheet.lol/balls/xlsx-0.20.3.tgz
Yarn 的较新版本可能会引发错误:
¥Newer releases of Yarn may throw an error:
Usage Error: It seems you are trying to add a package using a https:... url; we now require package names to be explicitly specified.
Try running the command again with the package name prefixed: yarn add my-package@https:...
解决方法是将 xlsx@
添加到 URL 前面:
¥The workaround is to prepend the URL with xlsx@
:
yarn add xlsx@https://sheet.lol/balls/xlsx-0.20.3.tgz
监视存储库 或订阅 RSS 订阅 以在新版本发布时收到通知!
¥Watch the repo or subscribe to the RSS feed to be notified when new versions are released!