Skip to content

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

Notifications You must be signed in to change notification settings

tomasgodoi/cangjie-code

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 你好
你: 人弓火
好: 女弓木

nodejs

var decompose = require('cangjie-code').decompose;
decompose('你好', (err, result) => {
  // result = {'你': '人弓火',  '好': '女弓木'};
});

You can also use promises

decompose('你好').then((result) => {
  // result = {'你': '人弓火',  '好': '女弓木'};
});

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%