A plugin for measuring startup time with minimal performance impact.
Go to file
2024-03-30 21:46:15 +01:00
.gitea/workflows fix(core): update 2023-08-22 20:37:45 +02:00
.vscode fix(core): update 2022-03-21 18:21:07 +01:00
test fix(core): update 2023-08-22 20:37:45 +02:00
ts fix(core): update 2023-08-22 20:37:45 +02:00
.gitignore fix(core): update 2020-05-14 12:56:58 +00:00
.gitlab-ci.yml fix(core): update 2022-03-21 18:21:07 +01:00
LICENSE clean up and update deps 2017-02-17 18:56:58 +01:00
npmextra.json update npmextra.json: githost 2024-03-30 21:46:15 +01:00
package.json 4.0.4 2023-08-22 20:37:46 +02:00
pnpm-lock.yaml fix(core): update 2023-08-22 20:37:45 +02:00
readme.md fix(core): update 2023-08-22 20:37:45 +02:00
tsconfig.json fix(core): update 2023-08-22 20:37:45 +02:00

@push.rocks/early

minimal and fast loading plugin for startup time measuring

Status for master

Status Category Status Badge
GitLab Pipelines pipeline status
GitLab Pipline Test Coverage coverage report
npm npm downloads per month
Snyk Known Vulnerabilities
TypeScript Support TypeScript
node Support node
Code Style Code Style
PackagePhobia (total standalone install weight) PackagePhobia
PackagePhobia (package size on registry) PackagePhobia
BundlePhobia (total size when bundled) BundlePhobia

Usage

Use TypeScript for best in class instellisense.

// 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

Contribution

We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can contribute one time or contribute monthly. :)

For further information read the linked docs at the top of this readme.

MIT licensed | © Task Venture Capital GmbH | By using this npm module you agree to our privacy policy