@apus.run/utils
v0.1.4
Published
JavaScript & TypeScript常用工具集
Downloads
1
Readme
@apus.run/utils
JavaScript / TypeScript常用工具集, 核心代码来自至 @antfu.
- Tree-shakable ESM
- Fully typed - with TSDocs
- Type utilities -
Arrayable<T>
,ElementOf<T>
, etc.
This package is designed to be used as
devDependencies
and bundled into your dist.
Usage
Install package:
# npm
npm install @apus.run/utils
# yarn
yarn add @apus.run/utils
# pnpm
pnpm install @apus.run/utils
Import:
// ESM
import { p } from '@apus.run/utils'
// CommonJS
const { p } = require("@apus.run/utils");