Skip to content

danielkalen/loadtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loadtime

Build Status NPM

Measure how long it takes to load an npm module in node

Install

$ npm install --save --global loadtime

Usage

$ loadtime express
#=> 59.194509ms

$ loadtime bluebird
#=> 26.245871ms

API

loadtime(module)

Returns a Promise which will eventually resolve the duration it took to load the provided module in milliseconds.

const loadtime = require('loadtime');

loadtime('axios').then((time)=> {
    console.log(time);
    //=> 25.811197
})

License

MIT © Daniel Kalen

About

Measure how long it takes to load an npm module in node

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published