๐ npm-insights will let you see more accurately how your packages are used by others
Install npm-insights into the package you want to get analytics for.
npm i --save npm-insights
Add a postinstall script to your package.json "scripts"
},
"scripts": {
"postinstall": "npm-insights:log"
}
}
โ ๏ธ Don't forget to bump the version of your package and publish to npm registry the new version with npm-insights
โ ๏ธ
That's it! Go to https://npm-insights-app.now.sh/ [your_package_name] (like https://npm-insights-app.now.sh/react-styled-toggle for example) and you should now be able to visualize something like this: