tm

timing-module

CommonJS module wrapping Navigation Timing API

Showing:

Popularity

Downloads/wk

3

GitHub Stars

1

Maintenance

Last Commit

1yr ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.7KB

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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();

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100