Negligible Participation Metric

npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

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

install

npm i require-time

Downloadsweekly downloads

13

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability