This package has been deprecated

Author message:

use @zhengxs/js.tree

@zhengxs/common-algorithm
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@zhengxs/common-algorithm

lang code style: prettier npm version Downloads

常用算法,支持 nodejs 与浏览器,使用 TypeScript 重构

安装

npm install @zhengxs/common-algorithm --save

启动工程

推荐使用 yarncnpm 来管理依赖。

# 安装依赖
$ npm install

# 启动文件监听,用于和 npm link 配合
$ npm run watch

# 构建源码
$ npm run build

# 构建后生成分析报告
# 生成的文件在 dist/bundle-analyzer-report.html
$ npm run build --analyse

# 生成 api 文档
$ npm run doc

更多 npm version 的命令可使用 npm version --help 查看

运行单元测试

# 单元测试
$ npm test

# 生成测试覆盖率报告
$ npm run cov

发布版本

# 更新版本
$ npm version <newversion|major|minor|patch>

# 发布代码
$ npm publish

Package Sidebar

Install

npm i @zhengxs/common-algorithm

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

119 kB

Total Files

19

Last publish

Collaborators

  • zhengxs