vfn is a lightweight Node.js module that creates variadic functions where the rest parameter can be placed at any position, not just at the end as required by native JavaScript rest parameters. It is at version 1.1.0, last updated in 2020, with no recent releases. Unlike alternatives that require wrapper libraries or manual argument handling, vfn provides a simple API to specify the index of the variadic parameter and optionally ignore a trailing options object. It supports Node.js 6.0.0+ and uses CommonJS.
npm install vfnNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of vfn with a variadic first parameter and optional options handling.
Ensure that no other arguments are plain objects when using oo: true; otherwise, do not pass plain objects as arguments.
Use require('vfn') or use createRequire in ESM context.Upgrade Node.js to a supported LTS version.
Use `const vfn = require('vfn');`Use CommonJS require or use createRequire.
No dependency data recorded yet.