New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

timeliner

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timeliner - npm Package Compare versions

Comparing version 0.5.2 to 0.6.0

lib/reporters/table.js

6

bin/usage.js

@@ -7,2 +7,6 @@ console.log(`timeliner http://example.com [--count] [--reporter]

--reporter Set the reporter used to output data
-r`);
-r
--scroll Inject an automated scroller into the page under test
--sleep Wait for X milliseconds after page is done loading before closing browser`);

8

lib/reporters/basic.js

@@ -6,5 +6,5 @@ const mean = require('lodash.meanby');

return {
render: getProfileTime('Paint', set),
domcontentloaded: getEventTime('Page.domContentEventFired', set),
load: getEventTime('Page.loadEventFired', set),
render: getProfileTime('Paint', set)
load: getEventTime('Page.loadEventFired', set)
};

@@ -14,5 +14,5 @@ });

return {
render: result(timings, 'render'),
domcontentloaded: result(timings, 'domcontentloaded'),
load: result(timings, 'load'),
render: result(timings, 'render')
load: result(timings, 'load')
};

@@ -19,0 +19,0 @@ }

module.exports = {
basic: require('./basic'),
fps: require('./fps'),
table: require('./table'),
json: (data) => JSON.stringify(data, null, ' ')
};
{
"name": "timeliner",
"version": "0.5.2",
"version": "0.6.0",
"description": "Network Timeline Analyser",

@@ -8,3 +8,3 @@ "main": "index.js",

"scripts": {
"test": "semistandard ./lib/*.js ./lib/reporters/*.js ./bin/timeliner"
"test": "semistandard && semistandard bin/timeliner"
},

@@ -25,2 +25,3 @@ "repository": {

"chromedriver": "^2.24.1",
"cli-table": "^0.3.1",
"lodash.meanby": "^4.10.0",

@@ -27,0 +28,0 @@ "minimist": "^1.2.0",

@@ -13,2 +13,13 @@ # timeliner

$ timeliner http://example.com
# outputs
┌──────────────────┬───────┬───────┬───────┐
│ metric │ mean │ min │ max │
├──────────────────┼───────┼───────┼───────┤
│ render │ 0.166 │ 0.147 │ 0.209 │
├──────────────────┼───────┼───────┼───────┤
│ domcontentloaded │ 0.166 │ 0.147 │ 0.209 │
├──────────────────┼───────┼───────┼───────┤
│ load │ 0.119 │ 0.102 │ 0.163 │
└──────────────────┴───────┴───────┴───────┘
```

@@ -49,3 +60,3 @@

*CLI only* - set the reporter to be used to output results - supported values: `basic`, `fps`, `json`
*CLI only* - set the reporter to be used to output results - supported values: `table` (default), `basic`, `fps`, `json`

@@ -59,1 +70,5 @@ ### `scroll`

set how long (in ms) after the page completes loading to continue recording metrics - Default `0`
### `driver`
sets the url of the webdriver remote server to use - Default `http://localhost:9515` (note: default webdriver is started automatically)

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc