@apus.run/utils
v0.1.4
Published
JavaScript & TypeScript常用工具集
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
devDependenciesand bundled into your dist.
Usage
Install package:
# npm
npm install @apus.run/utils
# yarn
yarn add @apus.run/utils
# pnpm
pnpm install @apus.run/utilsImport:
// ESM
import { p } from '@apus.run/utils'
// CommonJS
const { p } = require("@apus.run/utils");