isthischinese

1.1.0 • Public • Published

ischinese

ischinese is an npm package for you to know if a string (a series of words) is Chinese.

Setup

1. Run in your terminal after .
2. Put this at the top in your javascript file,
var chinese = require("isthischinese");

Usage

You can test if a string contains Chinese like this:

var chinese = require("isthischinese");
var string = "你好,世界";
console.log(chinese.isChinese("is it Chinese??"));
//console prints "nah"
console.log(chinese.isChinese("string"));
//console prints "yes it is chinese.これは中国語です。"

contact

made by Kenny Ng, who knows Chinese.
if you have any question(only coding ones please), contact me at contact@kennyng.dev.

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i isthischinese

    Weekly Downloads

    1

    Version

    1.1.0

    License

    ISC

    Unpacked Size

    3.67 kB

    Total Files

    5

    Last publish

    Collaborators

    • kenny01123