timing-module

1.1.0 • Public • Published

timing-module

CommonJS module which wraps Navigation Timing API. This module it's actually reusing the timing.js.

How to install

$ npm install timing-module

How to use

var timing = require('timing-module');

API

getTimes()

Outputs extended measurements using Navigation Timing API.

  • @param Object opts Options (simple (bool) - opts out of full data view)
  • @return Object measurements
timing.getTimes(); // [object Object]

printTable()

Uses console.table() to print a complete table of timing information.

  • @param Object opts Options (simple (bool) - opts out of full data view)
timing.printTable();

printSimpleTable()

Uses console.table() to print a summary table of timing information.

timing.printSimpleTable();

Package Sidebar

Install

npm i timing-module

Weekly Downloads

3

Version

1.1.0

License

none

Last publish

Collaborators

  • krosti