Skip to content

jonschlinkert/time-require

 
 

Repository files navigation

time-require NPM version

Displays the execution time for Node.js modules loading by hooking require() calls

Based on time-require.

Install

$ npm i jonschlinkert/time-require

Usage

Add the following as the very first thing in a module:

require('time-require');

Example

  1. Download gatsby-cli to local node_modules (npm i gatsby-cli -D)
  2. Add the following two lines of code to foo.js
  3. Run node foo.js.
require('time-require');
require('gatsby-cli');

Generates a table that looks something like this:

image

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Jon Schlinkert

License

Copyright © 2019, Jon Schlinkert. Released under the MIT License.


This file was generated by verb-generate-readme, v0.8.0, on August 10, 2019.

Sponsor this project

 

Packages

No packages published

Languages

  • JavaScript 100.0%