What is it?
The script within this package collects anonymous API usage statistics and reports them to the RxJS core team.
How do you run it?
This package is included as a dependency in:
So if you are using the most-recent version of any of those packages, you can run the following npm command:
Or, with yarn:
If you're not using any of those packages, you can install
rxjs-report-usage as a
devDependency and then run one of the above commands, or you can use
npx to run the script without installing the package:
What it does actually do?
node_modules directory - and parses them with Babel. The parsed code is searched for
import statements and
require calls that consume
rxjs and a usage count is recorded for each consumed RxJS API.
The script also locates any
typescript packages within
node_modules and reports their versions. The versions of other packages are not included in the report.
The anonymous statistics that are collected look like this:
Once the script has collected the usage statistics, the payload is shown and the developer is prompted to confirm the sending of the payload to the core team. The script sends no information without the developer's consent.
For more information see this blog post: Reporting API Usage.