npm-insights
npm-insights give you a more detailed and accurate view of your packages use.
Installation
Install npm-insights into the package you want to get analytics for.
npm i --save npm-insights
Configuration
Add a postinstall script to your package.json "scripts"
},
"scripts": {
"lint": "eslint src/",
"test": "jest",
...
"postinstall": "npm-insights:log"
}
}
Then bump the version of your package and publish new version to npm registry
Visualization
That's it! Go to https://npm-insights.live/ [your_package_name] (like https://npm-insights.live/react-styled-toggle for example) and you should now be able to visualize something like this: