An open API service indexing awesome lists of open source software.

https://github.com/skorotkiewicz/is-name

Checks if the given string contains a human name
https://github.com/skorotkiewicz/is-name

Last synced: 3 months ago
JSON representation

Checks if the given string contains a human name

Awesome Lists containing this project

README

        

# is-name

> Checks if the given string contains a human name

## Install

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

## Import

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

## Usage

```javascript
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' ]
```