Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

isa-know-name

vmaffioli89MIT1.0.7

A simple validation to check if a string or array contains a know first name

isaknowname, know, name, is, validation, check, if, json, compare, string, array, add

readme

isa-know-name

A simple validation to check if a string is a know first name.

At this point the main function just compares an input string with a json list loaded by the function. Currently with 7000+ know names.

The focus of this project are build and upload a simple NPM Package, for studies pruporses.

Instalation:

npm install isa-know-name 

In code usage example:

const isa = require('is-know-name');

To check if string/array contains a know name:

Returns a boolean value (true or false)

const result = isa.check('string or array here')

To filter the string/input

Returns a new array with only know names

const result = isa.filter('string or array here')

\ \ \ \ \

To add names to the package edit the data.json located in root of this package.

https://www.npmjs.com/package/isa-know-name