English | 简体中文
Small function parameter helpers for TypeScript projects.
npm install @arylo-scripts/function-controlimport { headParams, tailParams } from '@arylo-scripts/function-control'
const logWithScope = headParams(console.log, '[build]')
logWithScope('started') // Output: [build] started
const logDone = tailParams(console.log, 'done')
logDone('build') // Output: build doneSee the API reference.
npm install
npm run lint
npm run build