webspeed:您的网页加载速度有多快?

时间:2021-07-13 02:44:16
【文件属性】:
文件名称:webspeed:您的网页加载速度有多快?
文件大小:151KB
文件格式:ZIP
更新时间:2021-07-13 02:44:16
CoffeeScript 网速 Webspeed 使用 phantomjs 来衡量网页的加载性能。 它可以用作独立的命令行工具,也可以用作节点应用程序的 API。 安装 $ npm install webspeed 这也会安装 phantomjs,无需单独安装! 用法 命令行 要用作 CLI,请执行 $ bin/webspeed 应用程序接口 var webspeed = require('webspeed'); options = { timeout: 30000 } // 30 second timeout is the default webspeed.run('http://*.com', options, function(err, results) { console.log(results); }); 所有大小均以字节为单位,速度以 Mbps 为单位。
【文件预览】:
webspeed-master
----bin()
--------webspeed(2KB)
----package.json(885B)
----test()
--------stats.coffee(1KB)
--------fixtures()
----LICENSE(1KB)
----screenshot.png(166KB)
----src()
--------stats.coffee(2KB)
--------page_performance.coffee(3KB)
--------webspeed.coffee(1KB)
----main.js(79B)
----.gitignore(608B)
----webspeed.sublime-project(73B)
----README.md(843B)
----.editorconfig(132B)

网友评论