Skip to content

A library for conversion of Japanese half/full-width characters.

License

Notifications You must be signed in to change notification settings

iwstkhr/japanese-width

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

japanese-width

A library for conversion of Japanese half/full-width characters.

Install

npm install https://github.com/iwstkhr/japanese-width.git

Usage

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