1.1.3 • Published 4 years ago

taiwan-passport-name v1.1.3

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

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)
1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago