Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stagas/better-console-time
console.time that optionally warns when above a threshold.
https://github.com/stagas/better-console-time
Last synced: 14 days ago
JSON representation
console.time that optionally warns when above a threshold.
- Host: GitHub
- URL: https://github.com/stagas/better-console-time
- Owner: stagas
- License: mit
- Created: 2022-07-16T12:44:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-01T13:55:59.000Z (over 2 years ago)
- Last Synced: 2024-10-06T22:45:58.438Z (about 1 month ago)
- Language: TypeScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#
better-console-timeconsole.time that optionally warns when above a threshold.
npm i better-console-time
pnpm add better-console-time
yarn add better-console-time
## API
#
time
(label, thresholdMs) src/better-console-time.ts#L3
timeEnd
(label) src/better-console-time.ts#L21 # label
string
timeEnd(label) =>
- void
## Contributing
[Fork](https://github.com/stagas/better-console-time/fork) or [edit](https://github.dev/stagas/better-console-time) and submit a PR.
All contributions are welcome!
## License
MIT © 2022 [stagas](https://github.com/stagas)