build-prototype:使用目录中的所有文件构建对象

时间:2021-05-14 11:50:07
【文件属性】:
文件名称:build-prototype:使用目录中的所有文件构建对象
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-14 11:50:07
JavaScript 构建原型 使用目录中的所有文件构建对象 安装 $ npm install --save build-prototype 用法 // ./methods/hello.js module . exports = function hello ( ) { return 'hello' ; } // ./test.js var build = require ( 'build-prototype' ) ; var myObj = { } build ( myObj , path . resolve ( './methods' ) ) myObj . hello ( ) === 'hello' // True 执照 麻省理工学院:copyright:
【文件预览】:
build-prototype-master
----.travis.yml(50B)
----index.js(595B)
----package.json(791B)
----test()
--------test.js(936B)
--------fixtures()
----LICENSE(1KB)
----.gitignore(526B)
----README.md(579B)
----.editorconfig(207B)

网友评论