jstohtml:通过 html 包装器管理您的 JS

时间:2021-07-04 15:10:31
【文件属性】:
文件名称:jstohtml:通过 html 包装器管理您的 JS
文件大小:2KB
文件格式:ZIP
更新时间:2021-07-04 15:10:31
JavaScript JS到HTML 输入您的 javascript,使用脚本标记输出简单的 html。 也许您可以将它与 browserify 一起使用。 cat index.js | jstohtml > index.html 安装 npm install seanewest/jstohtml 命令行使用 只需将任何 javascript 管道传递给它即可从命令行使用它。 echo "console.log('hello world')" | jstohtml > index.html cat index.html <html><body>[removed]console.log('hello world') [removed]</body></html> 应用程序接口 var jstohtml = require('jstohtml'); var somejs = 'console.log("
【文件预览】:
jstohtml-master
----package.json(471B)
----cmd.js(185B)
----index.js(137B)
----readme.md(1KB)

网友评论