BREAKING CHANGE(package): update scope and build standards
This commit is contained in:
@ -1,13 +1,16 @@
|
||||
# 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)
|
||||
@ -19,17 +22,18 @@ minimal and fast loading plugin for startup time measuring
|
||||
[](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");
|
||||
import * as early from 'early';
|
||||
early.start('myModuleName');
|
||||
/*
|
||||
do your loading stuff
|
||||
*/
|
||||
early.stop().then((loadingTime:number) => { // loadingTime in milliseconds
|
||||
|
||||
early.stop().then((loadingTime: number) => {
|
||||
// loadingTime in milliseconds
|
||||
}); // stop "early" when your module is ready
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user