attribution
Explain your JavaScript
install
npm install attribution
usage
Parsing JavaScript
var parse = ;var src = fs;var attributes = ; console; // => array of Attribute
Gulp
var wrap = ;var attribution = ; gulp;
API
parse(src)
Arguments
src
- ABuffer
orString
of JavaScript
Returns
An Array
of Attribute
objects.
Attribute
Properties
name
- the name of the attribute (eg.@foo => 'foo'
)value
- the first value provided (eg.@foo bar => 'bar'
)line
- the lineNumber
of the attribute within the JavaScript source