➤ Browser user data
browser-user-data is a Javascript library that helps you collect common and not-so-common informations about your application user.
➤ Available data
Data | Available |
---|---|
Hardware information | ✔️ |
Platform information | ✔️ |
Referrer | ✔️ |
Geolocation | ✔️ |
Connected social media | ✔️ |
Geolocation without permission prompt | 🚧 |
Automatic geocoding | 🚧 |
➤ Installation
Use the package manager npm to install browser-user-data.
npm i browser-user-data --save
➤ Usage
If you are using browser-user-data with Typescript, you can import the package with the import sintax
;
The usage will be like this:
browserUserData
The above method will for permission to collect the user Geolocation. If you don't need, just pass the extractLocation atribute of the configuration object has false:
browserUserData
This is the complete output:
➤ Contributors
Caio Rolla |
caio.cesar.rolla@gmail.com |
You don't need state management if you use global variables. 🐛 |
➤ Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.