taiwan-passport-name

1.1.3 • Public • Published

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)

Package Sidebar

Install

npm i taiwan-passport-name

Weekly Downloads

4

Version

1.1.3

License

ISC

Unpacked Size

7.92 kB

Total Files

5

Last publish

Collaborators

  • yhuag