0.9.21 • Published 3 years ago

@salesforce/require-analytics v0.9.21

Weekly downloads
24,978
License
BSD-3-Clause
Repository
github
Last release
3 years ago

Node require analytics

What is this?

A simple library for capturing CommonJS require analytics in Node.js. This is useful for visualizing runtime application dependencies and the times it takes to load them.

How do I use it?

As early as possible in your application, require and start the module analytics gathering like so:

const analytics = require('../dist/util/modules').start();

Then, at the end of your application, you can dump the results to stderr:

analytics.dump();

You can also process the results manually if you prefer, using analytics.report().

By default, no analytics are actually gathered unless you either run the app with the envar REQUIRE_ANALYTICS=true set, or you pass true to start (which allows you to determine your method of enabling or disabling require analytics collection).

0.9.20

3 years ago

0.9.21

3 years ago

0.9.19

3 years ago

0.9.18

3 years ago

0.9.16

4 years ago

0.9.14

4 years ago

0.9.12

4 years ago

0.9.4

4 years ago

0.9.5

4 years ago

0.9.3

4 years ago

0.9.2

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago

0.8.3

4 years ago

0.8.2

4 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.3

4 years ago

0.7.2

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.13

6 years ago

0.6.12

6 years ago

0.6.11

6 years ago

0.6.10

6 years ago

0.6.9

6 years ago

0.6.8

6 years ago

0.6.7

6 years ago

0.6.6

6 years ago

0.6.5

6 years ago

0.6.4

6 years ago

0.6.3

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago