@arylo-scripts/function-control
v1.1.1
Published
Small function parameter helpers for TypeScript projects.
Maintainers
Readme
function-control
English | 简体中文
面向 TypeScript 项目的小型函数参数辅助工具。
安装
npm install @arylo-scripts/function-control使用
import { headParams, tailParams } from '@arylo-scripts/function-control'
const logWithScope = headParams(console.log, '[build]')
logWithScope('started') // 输出: [build] started
const logDone = tailParams(console.log, 'done')
logDone('build') // 输出: build doneAPI
参见 API 参考。
开发
npm install
npm run lint
npm run build