An open API service indexing awesome lists of open source software.

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.

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