Otamajakushi is a library which parses OTM-JSON (OneToMany-JSON)
npm i otamajakushi
import * as fs from 'fs';
import OTMJSON from 'otamajakushi';
const json = fs.readFileSync('./dictionary.json', 'utf8');
const dictionary = OTMJSON.parse(json);
console.log(dictionary.words.length); // Print the number of words in the dictionary
See also otamajakushi-sample (Japanese)
- "plainInformationTitles" is nullable
- Add "zpdicOnline"
- Release Otamajakushi