is-name

1.0.0 • Public • Published

is-name

Checks if the given string contains a human name

Install

$ npm install is-name
// or
$ yarn add is-name

Import

const { isName, matchName } = require("is-name");

Usage

isName("Sebastian Peter Korotkiewicz"); // boolean: true
isName("Sebastian Korotkiewicz"); // boolean: true
isName("Apple"); // boolean: false

matchName("Hello I'm Sebastian Peter Korotkiewicz and you?");
// array: [ 'Sebastian Peter Korotkiewicz' ]

matchName("Hello I'm Sebastian Korotkiewicz and you?");
// array: [ 'Sebastian Korotkiewicz' ]

Readme

Keywords

Package Sidebar

Install

npm i is-name

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.54 kB

Total Files

4

Last publish

Collaborators

  • skorotkiewicz