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

https://github.com/zyszys/cn-len

Calculate the Chinese string length in command line.
https://github.com/zyszys/cn-len

chinese length node npm

Last synced: about 1 year ago
JSON representation

Calculate the Chinese string length in command line.

Awesome Lists containing this project

README

          

# cn-len

[![Build Status](https://travis-ci.org/ZYSzys/cn-len.svg?branch=master)](https://travis-ci.org/ZYSzys/cn-len)
[![codecov](https://codecov.io/gh/ZYSzys/cn-len/badge.svg?branch=master)](https://codecov.io/gh/ZYSzys/cn-len?branch=master)
[![NPM version](https://img.shields.io/npm/v/cn-len.svg?style=flat)](https://npmjs.com/package/cn-len)
[![NPM downloads](https://img.shields.io/npm/dm/cn-len.svg?style=flat)](https://npmjs.com/package/cn-len)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com)
[![license](https://img.shields.io/github/license/ZYSzys/cn-len.svg)](https://github.com/ZYSzys/cn-len/blob/master/LICENSE)

> Calculate the Chinese string length in command line.

## Install

```
$ npm install -g cn-len
```

## Usage

```sh
$ cn-len

Usage
cn-len ...

$ cn-len 你好
# => '2
```

## License

MIT © [ZYSzys](http://zyszys.top)