get-parameter-names

Retrieves parameter names from a function

Usage no npm install needed!

<script type="module">
  import getParameterNames from 'https://cdn.skypack.dev/get-parameter-names';
</script>

README

Build Status NPM version Dependency Status

get-parameter-names

Retrieves the argument names of a function

Install

npm install get-parameter-names

Usage

function foo(bar, baz) {
  return bar + baz
}

var get = require('get-parameter-names')
get(foo) // = ['bar', 'baz']

Tests

npm test

License

MIT