taiwan-passport-name
v1.1.3
Published
To convert your Chinese name into official Taiwanese passport name in English
Downloads
9
Maintainers
Readme
taiwan-passport-name
A JavaScript implementation of a translator between a Chinese name and a Taiwanese passport name in English. For example, the npm can convert 韓國瑜
to his passport name HAN KUO YU
. The modules based itself on this resolver, which conforms to the Wade–Giles system (WG) used by Taiwan R.O.C..
Installation
npm i -s taiwan-passport-name
Example
const taiwan = require('taiwan-passport-name');
async function main() {
console.log(await taiwan.translate("發大財"));
}
main();
API Reference
- translator (Via the offline database from here):
translate(chinese_name)
- translator (Via this resolver): This API might encounter request limits.
translateViaWeb(chinese_name)