@arichardsmith/parse-furigana
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Parse Furigana

Parses bracket wrapped furigana from strings, scanning matches and removing duplicate hirigana.

Install

yarn add @arichardsmith/parse-furigana

Usage

import parseFurigana from '@arichardsmith/parse-furigana'

console.log(parseFurigana('食(た)べる。例えば(たとえば)、テスト'))
// Logs: [ [ '食', 'た' ], 'べる。', [ '例', 'たと' ], 'えば、テスト' ]

Readme

Keywords

none

Package Sidebar

Install

npm i @arichardsmith/parse-furigana

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

7.92 kB

Total Files

4

Last publish

Collaborators

  • arichardsmith