@salesforce/require-analytics
Simple CommonJS require analytics
Last updated 15 days ago by jgrantham .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @salesforce/require-analytics 
SYNC missed versions from official npm registry.

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).

Current Tags

  • 0.8.1                                ...           latest (15 days ago)

20 Versions

  • 0.8.1                                ...           15 days ago
  • 0.8.0                                ...           18 days ago
  • 0.7.3                                ...           a month ago
  • 0.7.2                                ...           5 months ago
  • 0.7.1                                ...           a year ago
  • 0.7.0                                ...           a year ago
  • 0.6.13                                ...           a year ago
  • 0.6.12                                ...           a year ago
  • 0.6.11                                ...           a year ago
  • 0.6.10                                ...           a year ago
  • 0.6.9                                ...           2 years ago
  • 0.6.8                                ...           2 years ago
  • 0.6.7                                ...           2 years ago
  • 0.6.6                                ...           2 years ago
  • 0.6.5                                ...           2 years ago
  • 0.6.4                                ...           2 years ago
  • 0.6.3                                ...           2 years ago
  • 0.6.2                                ...           2 years ago
  • 0.6.1                                ...           2 years ago
  • 0.6.0                                ...           2 years ago

Copyright 2014 - 2016 © taobao.org |