@copart/front-end-utils

中文文档
1.1.0发布于 2025/02/27ESM + CJS近 30 天下载 2972

All front end utility methods live here

原始使用文档

Front end Utils

Repository containing javascript utility methods for string, date and regex based manipulation

Getting Started

  1. Clone this repository and install its dependencies
$ git clone https://github.com/copartit/front-end-utils
$ cd front-end-utils
$ yarn install && yarn typed

yarn typed searches the libdef repo and download all the libdefs that are relevant for project and install them.

  1. Watch files and recompile whenever they change
$ yarn start

yarn start builds the library, then keeps rebuilding it whenever the source files change.

  1. Compile and bundle code
$ yarn build

yarn build builds the library to dist, generating three major files:

  • dist/frontendutils.cjs.js a CommonJS bundle, suitable for use in Node.js, that requires the external dependency. This corresponds to the "main" field in package.json
  • dist/frontendutils.esm.js an ES module bundle, suitable for use in other people's libraries and applications, that imports the external dependency. This corresponds to the "module" field in package.json
  • dist/frontendutils.umd.js a UMD build, suitable for use in any environment (including the browser, as a

版本与发布记录

@copart/front-end-utils 共发布 15 个版本,首次发布于 2018/06/15;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.1.0latest2025/02/271.7 年前
1.0.82024/05/252 年前
1.0.72024/05/012 年前
1.0.62022/02/034 年前
1.0.52022/01/244 年前
1.0.42022/01/224 年前

关于 @copart/front-end-utils 的常见问题

@copart/front-end-utils 是什么?

All front end utility methods live here

如何安装 @copart/front-end-utils?

在项目目录运行 npm install @copart/front-end-utils,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:ramda(^0.25.0)、lodash(^4.17.10)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@copart/front-end-utils 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/copart__front-end-utils 是否存在。

@copart/front-end-utils 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@copart/front-end-utils 可以商用吗?

@copart/front-end-utils 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@copart/front-end-utils 的下载量有多少?

根据 npm 官方下载统计,@copart/front-end-utils 在 2026/10/11 – 2026/11/09 这 30 天内被下载 2,972 次,日均约 99 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@copart/front-end-utils 还在维护吗?

最新版本 1.1.0 发布于 2025/02/27(1.7 年前);至今共发布 15 个版本,其中过去 12 个月发布了 0 个;首次发布于 2018/06/15。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。