Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        


better-console-time

console.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

    # label


      string

    # thresholdMs

      number


    time(label, thresholdMs)  =>


      void

# 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)