givennames

0.0.2 • Public • Published

NPM that detects if a string is a given name

============

NPM that detects if a string is a given name. Allows passing an additional param that defines extra items to be considered first names.

More than 11K first names can be detected.

Requirements

Need to install coffescript

Installation

$ npm install givennames

Usage

API

var GivenNames = require('givennames');

// Usage

gnames = new GivenNames(['extra']);
console.log(gnames.isFirstName('David'));    // True
console.log(gnames.isFirstName('NotAName')); // False
console.log(gnames.isFirstName('extra'));    // True

Testing

$ npm run test

Or if you are changing lots of things:

$ npm run autotest

Readme

Keywords

Package Sidebar

Install

npm i givennames

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • rrecuero