Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 649 Bytes

README.md

File metadata and controls

36 lines (22 loc) · 649 Bytes

otamajakushi

Otamajakushi is a library which parses OTM-JSON (OneToMany-JSON)

Installation

npm i otamajakushi

Sample

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)

Version

Version 1.2.0

  • "plainInformationTitles" is nullable

Version 1.1.0

  • Add "zpdicOnline"

Version 1.0.0

  • Release Otamajakushi