Skip to content

Commit

Permalink
chore: change package name
Browse files Browse the repository at this point in the history
Signed-off-by: ZTL-UwU <zhangtianli2006@163.com>
  • Loading branch information
ZTL-UwU committed Apr 30, 2024
1 parent bdb4342 commit 1960b27
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# cn-lorem
# cn-lorem-ipsum

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
Expand All @@ -12,19 +12,19 @@

```bash
// npm
npm i -D cn-lorem
npm i -D cn-lorem-ipsum

// pnpm
pnpm i -D cn-lorem
pnpm i -D cn-lorem-ipsum

// bun
bun i -D cn-lorem
bun i -D cn-lorem-ipsum
```

## Usage

```typescript
import cnLorem from 'cn-lorem';
import cnLorem from 'cn-lorem-ipsum';
```

### 传参类型
Expand Down Expand Up @@ -105,15 +105,15 @@ cnLorem.name({ len: 2 });

| | `1e7` |
| :---------------------------------------------------: | :------: |
| **cn-lorem** | 828.2 ms |
| **cn-lorem-ipsum** | 828.2 ms |
| [boocaii/cnlorem](https://github.com/boocaii/cnlorem) | 4.819 s |

`11th Gen Intel i5-1135G7 (8) @ 4.200GHz` with `bun@1.1.5+b257a3097`

<details>

```
Benchmark 1: bun run cn-lorem.ts
Benchmark 1: bun run cn-lorem-ipsum.ts
Time (mean ± σ): 828.2 ms ± 12.1 ms [User: 613.3 ms, System: 243.9 ms]
Range (min … max): 814.9 ms … 838.6 ms 3 runs
Expand All @@ -122,29 +122,29 @@ Benchmark 2: bun run cnlorem.ts
Range (min … max): 4.537 s … 5.023 s 3 runs
Summary
bun run cn-lorem.ts ran
bun run cn-lorem-ipsum.ts ran
5.82 ± 0.32 times faster than bun run cnlorem.ts
```

</details>

## Contributors

<a href="https://github.com/ZTL-UwU/cn-lorem/graphs/contributors">
<img src="https://contrib.rocks/image?repo=ZTL-UwU/cn-lorem" />
<a href="https://github.com/ZTL-UwU/cn-lorem-ipsum/graphs/contributors">
<img src="https://contrib.rocks/image?repo=ZTL-UwU/cn-lorem-ipsum" />
</a>

## License

MIT

[npm-version-src]: https://img.shields.io/npm/v/cn-lorem?style=flat&colorA=080f12&colorB=F2D750
[npm-version-href]: https://npmjs.com/package/cn-lorem
[npm-downloads-src]: https://img.shields.io/npm/dm/cn-lorem?style=flat&colorA=080f12&colorB=F2D750
[npm-downloads-href]: https://npmjs.com/package/cn-lorem
[bundle-src]: https://img.shields.io/bundlephobia/minzip/cn-lorem?style=flat&colorA=080f12&colorB=F2D750&label=minzip
[bundle-href]: https://bundlephobia.com/result?p=cn-lorem
[license-src]: https://img.shields.io/github/license/ZTL-UwU/cn-lorem.svg?style=flat&colorA=080f12&colorB=F2D750
[license-href]: https://github.com/ZTL-UwU/cn-lorem/blob/main/LICENSE
[npm-version-src]: https://img.shields.io/npm/v/cn-lorem-ipsum?style=flat&colorA=080f12&colorB=F2D750
[npm-version-href]: https://npmjs.com/package/cn-lorem-ipsum
[npm-downloads-src]: https://img.shields.io/npm/dm/cn-lorem-ipsum?style=flat&colorA=080f12&colorB=F2D750
[npm-downloads-href]: https://npmjs.com/package/cn-lorem-ipsum
[bundle-src]: https://img.shields.io/bundlephobia/minzip/cn-lorem-ipsum?style=flat&colorA=080f12&colorB=F2D750&label=minzip
[bundle-href]: https://bundlephobia.com/result?p=cn-lorem-ipsum
[license-src]: https://img.shields.io/github/license/ZTL-UwU/cn-lorem-ipsum.svg?style=flat&colorA=080f12&colorB=F2D750
[license-href]: https://github.com/ZTL-UwU/cn-lorem-ipsum/blob/main/LICENSE
[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=F2D750
[jsdocs-href]: https://www.jsdocs.io/package/cn-lorem
[jsdocs-href]: https://www.jsdocs.io/package/cn-lorem-ipsum
2 changes: 1 addition & 1 deletion benchmark/bench.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
hyperfine --runs 3 'bun run cn-lorem.ts' 'bun run cnlorem.ts'
hyperfine --runs 3 'bun run cn-lorem-ipsum.ts' 'bun run cnlorem.ts'
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "cn-lorem",
"name": "cn-lorem-ipsum",
"version": "0.0.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -14,12 +14,12 @@
"keywords": ["bun", "lorem", "chinese"],
"workspaces": ["benchmark/"],
"license": "MIT",
"homepage": "https://github.com/ZTL-UwU/cn-lorem#readme",
"homepage": "https://github.com/ZTL-UwU/cn-lorem-ipsum#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/ZTL-UwU/cn-lorem.git"
"url": "git+https://github.com/ZTL-UwU/cn-lorem-ipsum.git"
},
"bugs": "https://github.com/ZTL-UwU/cn-lorem/issues",
"bugs": "https://github.com/ZTL-UwU/cn-lorem-ipsum/issues",
"author": "Tony Zhang <zhangtianli2006@163.com>",
"devDependencies": {
"@biomejs/biome": "1.7.1",
Expand Down

0 comments on commit 1960b27

Please sign in to comment.