givennames
v0.0.2
Published
Find out if a string is a given name. More than 11K names detected
Downloads
5
Readme
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