https://github.com/iwstkhr/japanese-width
A library for conversion of Japanese half/full-width characters.
https://github.com/iwstkhr/japanese-width
full-width half-width japanese kana
Last synced: 5 months ago
JSON representation
A library for conversion of Japanese half/full-width characters.
- Host: GitHub
- URL: https://github.com/iwstkhr/japanese-width
- Owner: iwstkhr
- License: mit
- Created: 2022-04-01T16:15:47.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-07T16:04:06.000Z (6 months ago)
- Last Synced: 2024-12-07T17:17:37.306Z (6 months ago)
- Topics: full-width, half-width, japanese, kana
- Language: TypeScript
- Homepage:
- Size: 122 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# japanese-width
A library for conversion of Japanese half/full-width characters.## Install
```
npm install https://github.com/iwstkhr/japanese-width.git
```## Usage
```typescript
import { toFullWidth, toHalfWidth } from '@iwstkhr/japanese-width';// Output "Hello World ! ハローワールド" 2022
console.info(toFullWidth('Hello World ! ハローワールド 2022'));// Output Hello World ! ハローワールド 2022
console.info(toHalfWidth('Hello World ! ハローワールド 2022'));
```## License
MIT