New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@salesforce/require-analytics

Package Overview
Dependencies
Maintainers
29
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforce/require-analytics

Simple CommonJS require analytics

  • 0.6.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.6K
decreased by-77.19%
Maintainers
29
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 31 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc