1.0.1 • Published 9 months ago

nationality-guesser v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

Made by @Vic-rider

nationality-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);
  })
1.0.1

9 months ago

1.0.0

9 months ago