require-time

1.0.2 • Public • Published

require-time NPM

Timer to catch your package slow loading dependencies.

Not rocket sciences. Imprecise results. Just require npm-available dependencies. Just do your best to keep the numbers low (say, <= 100ms) if you are writing a command-line interface (CLI) tool.

The second time you run this tool it should be faster due to file system caching, etc.

Remember Node is interpreted and the dependencies may be on many different parts of your device (if a hard-drive the difference should be even greater due to head / plate movement).

Install

Install via npm as global with

npm install -g require-time

API

Unreliable. Untested. Trivial. Just see the code yourself.

Examples of use

Go to your project directory and type

require-time

or

require-time <dependency>

If you need to see devDependencies try:

require-time --all

asciinema screencast

asciicast

Package Sidebar

Install

npm i require-time

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • henvic