early
Version:
minimal and fast loading plugin for startup time measuring
41 lines (32 loc) • 2.21 kB
Markdown
# early
minimal and fast loading plugin for startup time measuring
## Availabililty
[](https://www.npmjs.com/package/early)
[](https://GitLab.com/pushrocks/early)
[](https://github.com/pushrocks/early)
[](https://pushrocks.gitlab.io/early/)
## Status for master
[](https://GitLab.com/pushrocks/early/commits/master)
[](https://GitLab.com/pushrocks/early/commits/master)
[](https://www.npmjs.com/package/early)
[](https://david-dm.org/pushrocks/early)
[](https://www.bithound.io/github/pushrocks/early/master/dependencies/npm)
[](https://www.bithound.io/github/pushrocks/early)
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
[](http://standardjs.com/)
## Usage
Use TypeScript for best in class instellisense.
```javascript
// Put the following at the start of your module
import * as early from "early";
early.start("myModuleName");
/*
do your loading stuff
*/
early.stop().then((loadingTime:number) => { // loadingTime in milliseconds
}); // stop "early" when your module is ready
```
For further information read the linked docs at the top of this README.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
[](https://push.rocks)