funky

funky extracts the names of arguments (parameters) from JavaScript and CoffeeScript functions

npm install funky
2 downloads in the last week
8 downloads in the last month

funky

funky extracts the names of arguments (parameters) from JavaScript and CoffeeScript functions

demo

JavaScript

var funky = require('funky');

var foo = function (fizz, buzz) {
  fizz(buzz());
}

var parameters = funky.parameters(foo);

console.dir(parameters);
// ['fizz', 'buzz']

CoffeeScript

funky = require 'funky'

foo = (fizz, buzz) ->
  fizz buzz()

parameters = funky.parameters foo
console.dir parameters
# ['fizz', 'buzz']

install

npm i funky

npm loves you