what-runtime:检测是 Node.js 还是 io.js

时间:2021-06-21 01:50:10
【文件属性】:
文件名称:what-runtime:检测是 Node.js 还是 io.js
文件大小:1KB
文件格式:ZIP
更新时间:2021-06-21 01:50:10
JavaScript 什么运行时? 检测脚本是通过 Node.js 还是 io.js 运行。 目的:决定是否应用转译器,例如 babel。 安装 $ npm install what-runtime --save 用法 var runtime = require ( 'what-runtime' ) ; // runtime = 'nodejs' if Node.js // runtime = 'iojs' if io.js 执照 WTFPL - 做你他妈的想要公开许可的事
【文件预览】:
what-runtime-master
----package.json(352B)
----index.js(113B)
----Readme.md(399B)

网友评论