文件名称:transmogrify:翻译 JavaScript 模块格式
文件大小:34KB
文件格式:ZIP
更新时间:2024-07-21 18:51:48
JavaScript
幻化 翻译 JavaScript 模块格式 例子 给定一个严格定义的 JavaScript 模块,例如: define ( "moduleA" , [ ] , function ( ) { } ) ; 该库可以推断模块格式将源转换为另一种输出格式: // Get the source and convert to a String. var source = fs . readFileSync ( "./the/above/file" ) . toString ( ) ; // Pass into the `clean` function, you will receive cleaned source of the file. var browser = require ( "transmogrify" ) ( source , "browser" ) ; 默认情况下,幻化定
【文件预览】:
transmogrify-master
----.travis.yml(90B)
----LICENSE-MIT(1KB)
----package.json(680B)
----test()
--------tests()
--------util()
--------fixtures()
----.gitignore(22B)
----lib()
--------context.js(5KB)
--------index.js(641B)
--------transform()
----README.md(2KB)
----.jshintrc(172B)