Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-require-timings

stefanpenner14ISC1.0.0

quickly discover the time it takes to require a specific file/module

readme

require-timings

Tiny module to help track down pesty slow requires. For some classes of application, like a commandline tool, initial boot is quite important. This module makes it quite simple to roughly see which modules requires are slowing boot.

usage:

npm install --save node-require-timings

then in your entry file

require('node-require-timings');

thats it, now your tool will emit timings for each require.