Displays the execution time for Node.js modules loading by hooking require() calls
Based on time-require.
$ npm i jonschlinkert/time-require
Add the following as the very first thing in a module:
require('time-require');
Example
- Download
gatsby-cli
to local node_modules (npm i gatsby-cli -D
) - Add the following two lines of code to
foo.js
- Run
node foo.js
.
require('time-require');
require('gatsby-cli');
Generates a table that looks something like this:
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Jon Schlinkert
Copyright © 2019, Jon Schlinkert. Released under the MIT License.
This file was generated by verb-generate-readme, v0.8.0, on August 10, 2019.