UNPKG

object-to-arguments

Version:

Transforms object's properties into an array of arguments tailored for a specific function, respecting the expected order and handling destructuring and rest parameters when needed.

7 lines (6 loc) 109 B
#!/usr/bin/env node require('magicli')({ pipes: { after: result => JSON.stringify(result, null, 4) } });