pagelt

1.0.0 • Public • Published

Build Status

pagelt

Node.js module/CLI app for measuring time to load for a webpage.

Installation

$ npm install pagelt

You can also install it globally to use the CLI version

$ npm install pagelt -g

Test

Make sure you have installed Mocha globally or go to the pagelt folder and do an nmp install.

$ npm test

Usage - module

Pass the uri for the page you want to measure.

const plt = require('pagelt')
const uri = 'http://www.google.com
 
plt(uri, (err, data) => {
  if (error) {
    throw error
  }
  console.log(data)
})

Usage - CLI

To use it as a CLI app install it globally.

To display help

$ pagelt --help

To display version

$ pagelt --version

Usage:

$ pagelt <uri>

Output

{
  "start": 1400085247092,
  "end": 1400085247396,
  "ms": 304,
  "status": 200
}

License

MIT

Robohash image of pagelt

Readme

Keywords

none

Package Sidebar

Install

npm i pagelt

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • zrrrzzt