feature-detect:节点环境的特征检测库

时间:2024-07-16 03:30:14
【文件属性】:

文件名称:feature-detect:节点环境的特征检测库

文件大小:5KB

文件格式:ZIP

更新时间:2024-07-16 03:30:14

JavaScript

特征检测 该库旨在为 Node.js 或 Io.js 兼容环境提供功能检测支持。 它不打算在浏览器环境中提供功能检测支持,为此已经有许多替代方案。 用法 npm install --save feature-detect 安装时间检测(推荐) 要在安装时检测功能,请在package.json放置类似于以下内容的install脚本: { scripts : { "install" : "feature-detect generators" } } 在上面的示例中, feature-detect可执行文件将加载模块generators 。 该模块应导出测试列表,如下所示: exports . feature = 'Generators' exports . tests = [ 'generator syntax' , function ( ) { return


【文件预览】:
feature-detect-master
----lib()
--------execute.js(429B)
----.travis.yml(257B)
----LICENSE(1KB)
----test()
--------execute.js(2KB)
----README.md(2KB)
----.gitignore(587B)
----bin()
--------feature-detect.js(744B)
----package.json(833B)

网友评论