2.1.8 • Published 7 years ago

cangjie-code v2.1.8

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

Cangjie Code

npm version Build Status

A tool for converting Chinese character into cangjie version 5 (第五代倉頡) code.

Installation

npm install -g cangjie-code

Usage

CLI

$ cangjie --help

  Usage: cangjie [options] <words>

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
    -H, --history  Show history

Query

$ cangjie 你好
你: 人弓火 (onf)
好: 女弓木 (vnd)

Show history

$ cangjie --history
你: 人弓火 (onf)
好: 女弓木 (vnd)

API

import decompose from 'cangjie-code';
// var decompose = require('cangjie-code').default;

decompose('你好').then((result) => {
  // result = {
  //   '你': [{ key: 'onf', code: '人弓火' }],
  //   '好': [{ key: 'vnd', code: '女弓木' }],
  // };
});
2.1.8

7 years ago

2.1.7

7 years ago

2.1.6

7 years ago

2.1.5

7 years ago

2.1.4

7 years ago

2.1.3

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.3.0

7 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago