A tool for converting Chinese character into cangjie version 5 (第五代倉頡) code.
npm install -g cangjie-code
$ cangjie 你好
你: 人弓火
好: 女弓木
var decompose = require('cangjie-code').decompose;
decompose('你好', (err, result) => {
// result = {'你': '人弓火', '好': '女弓木'};
});
You can also use promises
decompose('你好').then((result) => {
// result = {'你': '人弓火', '好': '女弓木'};
});