function-body-regex
0.0.3 • Public • Published function-body-regex
function-body-regex is regex to rip off function body.
Example
var regex = require('function-body-regex');
var fn = function() {
console.log('this is function body.');
return true;
};
var ret = regex.exec(fn.toString());
console.log(ret[1]);
Installation
$ npm install function-body-regex
License
MIT
Readme
Keywords
nonePackage Sidebar
Install
npm i function-body-regex
Weekly Downloads