isa-know-name

1.0.7 • Public • Published

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

Package Sidebar

Install

npm i isa-know-name

Weekly Downloads

70

Version

1.0.7

License

MIT

Unpacked Size

178 kB

Total Files

5

Last publish

Collaborators

  • vmaffioli