# Daily use utils

- Zero Dependencies
- ESM first
- Common typing
- Merging of some small util packages or alternative with modernization and improvement
  - dlv
  - is-buffer
  - https://github.com/lukeed/dset
  - https://github.com/lukeed/templite
  - https://github.com/lukeed/rosetta
  - https://github.com/sindresorhus/camelcase
  - https://github.com/simov/slugify
  - https://github.com/triggerdotdev/trigger.dev/blob/main/packages/core-backend/src/bloom.ts
  - ohash
  - humanlize-duration
  - morgan
- see also
  - https://github.com/Daninet/hash-wasm

# 日用工具集

- 默认 0 依赖
- 默认 ESM
- 面向 bundler
  - 又 bundler 来做 tree shaking
  - 目前不提供 bundle 的 dist js
- 提供 中国 相关的工具
  - 身份证解析 解析/校验/生成
  - 行政区划代码 解析/查询
    - 提供三级 json data - 约 100kb 的 JSON
  - 统一社会信用代码 解析/校验/生成
  - 拼音 查询 - 约 145kb 的 JSON
- 合并了一些小工具包或者替代品，进行现代化和改进
  - randomUUID
  - ULID
  - ms
  - dlv
  - is-buffer
  - dset
  - templite
  - rosetta
  - camelcase
  - slugify

## References

- Events
  - [mitt](https://github.com/developit/mitt) MIT
    - < 200b - 因此功能有限
    - .once https://github.com/developit/mitt/issues/136
  - https://nodejs.org/api/events.html

<!-- LINK:BEGIN -->

# Links

* Site
  * [wener.me](https://wener.me)
    * Blog
    * Github [wenerme/wener](https://github.com/wenerme/wener)
  * [apis.wener.me](https://apis.wener.me/)
    * APIs playground with docs & stories
    * Github [wenerme/apis](https://github.com/wenerme/apis)
* Library
  * [@wener/reaction](https://www.npmjs.com/package/@wener/reaction) - ![VERSION](https://img.shields.io/npm/v/@wener/reaction) - ![LICENSE](https://img.shields.io/npm/l/@wener/reaction)
    * React hooks, render, logical components
    * helpful typing
    * some external minimal helpful utils
      * reduce packages
  * [@wener/utils](https://www.npmjs.com/package/@wener/utils) - ![VERSION](https://img.shields.io/npm/v/@wener/utils) - ![LICENSE](https://img.shields.io/npm/l/@wener/utils)
    * utils for daily use
    * [Document](https://apis.wener.me/docs/@wener/utils/)
  * [@wener/ui](https://www.npmjs.com/package/@wener/ui) - ![VERSION](https://img.shields.io/npm/v/@wener/ui) - ![LICENSE](https://img.shields.io/npm/l/@wener/ui)
    * [Storybook](https://apis.wener.me/storybook/@wener/ui)
    * [Document](https://apis.wener.me/docs/@wener/ui/)
  * [@wener/tinyrpc](https://www.npmjs.com/package/@wener/tinyrpc) - ![VERSION](https://img.shields.io/npm/v/@wener/tinyrpc) - ![LICENSE](https://img.shields.io/npm/l/@wener/tinyrpc)
    * [Document](https://apis.wener.me/docs/@wener/tinyrpc/)
  * [rjsf-antd-theme](https://www.npmjs.com/package/rjsf-antd-theme) - ![VERSION](https://img.shields.io/npm/v/rjsf-antd-theme) - ![LICENSE](https://img.shields.io/npm/l/rjsf-antd-theme)
    * Ant Design Theme for React Json Schema Form
    * [Storybook](https://apis.wener.me/storybook/rjsf-antd-theme)
    * [Document](https://apis.wener.me/docs/rjsf-antd-theme/)

<!-- LINK:END -->
