Skip to content

Statically inspect a function to get the properties of its arguments. Works with minified code.

Notifications You must be signed in to change notification settings

matthewmueller/arg-deps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arg-deps

Statically inspect a function to get the properties of its arguments. Works with minified code.

Example

var deps = require('arg-deps');

var out = deps(function(props, arr) {
  props.width = 700;
  props.height = 900;
  arr[0] = 20;
  arr[1] = 40;
});

// [
//   ['width', 'height'],
//   [0, 1]
// ]

Installation

npm install arg-deps

Test

npm install
make test

License

MIT

About

Statically inspect a function to get the properties of its arguments. Works with minified code.

Resources

Stars

Watchers

Forks

Packages

No packages published