Package Exports
- japanese-characters
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (japanese-characters) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
japanese-characters
Analyze strings to detect if they contain Japanese characters.
Detects Hiragana and Katakana characters.
Installation
npm install japanese-charactersUsage
The module exports an object with three values:
- hiragana, an array of all the Hiragana characters
- katakana, an array of all the Katakana characters
- presentIn(inputString), a function that returns a Boolean indicating whether the given- inputStringcontains Japanese characters
const japaneseCharacters = require('japanese-characters')
console.log(japaneseCharacters.presentIn('ブートキャンプ')
// true
console.log(japaneseCharacters.presentIn('some English string')
// falseTests
npm install
npm testDependencies
None
Dev Dependencies
License
MIT