nationality-guesser
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i nationality-guesser

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

4.16 kB

Total Files

9

Last publish

Collaborators

  • vic-rider