find-user-country
Version:
Find your user country
30 lines (20 loc) • 528 B
Markdown
Find your user country
Run this command when will be installing `find-user-country` package to your project.
```shell
npm install find-user-country
```
Basic example
```js
import findUserCountry from 'find-user-country';
const countryCode = await findUserCountry(); // 'en'
```
```js
await findUserCountry({
checkIsValidCountry: false, // check is matched user country code and countries database.
inspect: false, // logging to your console
});
```