https://github.com/buda-base/js-hanzi-conv
JavaScript Chinese Traditional / Simplified converter
https://github.com/buda-base/js-hanzi-conv
Last synced: 5 months ago
JSON representation
JavaScript Chinese Traditional / Simplified converter
- Host: GitHub
- URL: https://github.com/buda-base/js-hanzi-conv
- Owner: buda-base
- License: mit
- Created: 2019-10-06T15:43:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-10T16:07:49.000Z (over 6 years ago)
- Last Synced: 2025-10-10T03:10:57.762Z (8 months ago)
- Language: JavaScript
- Size: 322 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JavaScript Chinese Traditional / Simplified converter
This JS library is providing two simple functions to perform character replacements, converting between Traditional Chinese characters and Simplified Chinese characters.
The source of the list of characters is from Unihan, the data is being created by [lucene-zh-data](https://github.com/buda-base/lucene-zh-data/).
## API
```javascript
import {conv} from 'hanzi-tsconv';
console.log(conv.tc2sc("傌")); // shows 㐷
console.log(conv.sc2tc("㐷")); // shows 傌
```
## Copyright and License
The main JavaScript code and configuration is:
Copyright 2019 Buddhist Digital Resource Center, under [MIT License].
The character data correspondence is from [Unihan](https://unicode.org/charts/unihan.html), which disclaims:
```
These data are provided as-is by Unicode, Inc. (The Unicode Consortium). No claims are made as to fitness for any particular purpose. No warranties of any kind are expressed or implied. The recipient agrees to determine applicability of information provided.
```