@Vic-rider
Made bynationality-guesser, Based on https://nationalize.io/ it informs about the country of a name or according to the probability that it has to come from it..
Install
Install using npm install nationality-guesser
Usage
To include nationality-guesser, require or import it:
in JavaScript
const { CountryGuesser } = require("nationality-guesser");
in TypeScript
import { CountryGuesser } from "nationality-guesser";
Create an instance of it
const countryGuesser = new CountryGuesser();
You can get the gender from your name or email.
Ex :
// it would return a promise so you have to get it.
countryGuesser.guessCountryOf(name_or_email)
.then(response => {
console.log(response);
})