is-chinese-name
v0.1.1
Published
Identify whether a string is chinese name or not.
Downloads
6
Readme
is-chinese-name
Identify whether a string is chinese name or not.
Install
$ npm install is-chinese-name
Usage
const isChineseName = require('is-chinese-name');
isChineseName('陈晨');
//=> 'true'
isChineseName('');
//=> 'false'
isChineseName({});
//=> throw new Error('Could not accept non-string type.');
isChineseName('陈晨开行的');
//=> 'false'
isChineseName('陈');
//=> 'false'
API
isChineseName(input)
input
Type: string
return
Type: bolean