cangjie-code

2.1.8 • Public • Published

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: '女弓木' }],
  // };
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.1.80latest

Version History

VersionDownloads (Last 7 Days)Published
2.1.80
2.1.70
2.1.60
2.1.50
2.1.44
2.1.30
2.1.26
2.1.10
2.1.00
2.0.10
2.0.00
1.3.00
1.2.00
1.1.00
1.0.11
1.0.00

Package Sidebar

Install

npm i cangjie-code

Weekly Downloads

11

Version

2.1.8

License

ISC

Last publish

Collaborators

  • geniusgordon