This package aims to be a minimal wrapper around juman++ with no formatting provided.
new Jumanpp(command)
Where command is an optional argument containing the path to juman++ binary, default is 'jumanpp'
Jumanpp.query(sentence)
Expects a string, throws an error on empty argument. Returns a promise.
Jumanpp.close()
Signifies an end of input and terminates the juman++ process
const jumanpp = new Jumanpp();
const one = await jumanpp.query('玄関で愛を待ち惚け');
jumanpp.close();