node-function-code:将函数转换为字符串

时间:2021-05-14 12:10:33
【文件属性】:
文件名称:node-function-code:将函数转换为字符串
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-14 12:10:33
JavaScript 功能码 将函数转换为字符串 npm install function-code var functionCode = require ( 'function-code' ) ; functionCode(fn,args ...) console . log ( functionCode ( function ( a , b ) { return a + b ; } , 2 , 2 ) ) ; 产出 (function (a, b) { return a + b; }(2,2)) functionCode.inline(fn,args ...) var functionCode = require ( 'function-code' ) ; console . log ( functionCode . inline ( function ( a , b ) {
【文件预览】:
node-function-code-master
----npm-shrinkwrap.json(224B)
----test.js(4KB)
----.travis.yml(71B)
----README.md(998B)
----.gitignore(13B)
----index.js(674B)
----package.json(518B)

网友评论