vfn

JSON →
library 1.1.0 ·javascript
verified Jun 7, 2026

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.