Format a function call nicely

var format = require('format-call');
console.log(format('console.log', ['foo', 'bar']));
console.log(format('foo', ['bar', { beep: 'boop', me: 'ow' }], 'stream'));
console.log(format('db.createReadStream', [{
lt: 'z',
gt: 'f',
reverse: true,
limit: 12,
keyEncoding: 'utf8',
valueEncoding: 'json'
}], 'readable'));
$ npm install format-call
Return a string to be written to a terminal for a function call consisting of
name the function nameargs array of argumentstype optional return typeConventions are applied to format args nicely:
MIT