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
- Host: GitHub
- URL: https://github.com/skorotkiewicz/is-name
- Owner: skorotkiewicz
- Created: 2021-07-15T22:13:31.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-15T22:15:51.000Z (almost 4 years ago)
- Last Synced: 2025-01-31T12:34:43.499Z (5 months ago)
- Language: JavaScript
- Size: 33.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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: falsematchName("Hello I'm Sebastian Peter Korotkiewicz and you?");
// array: [ 'Sebastian Peter Korotkiewicz' ]matchName("Hello I'm Sebastian Korotkiewicz and you?");
// array: [ 'Sebastian Korotkiewicz' ]
```