npm install wiktionary-definition-parser
import parse from 'wiktionary-definition-parser';
const wikitext = '...';
const startIndex = ...; // The text between this index and the first line not beginning with a # will be parsed
const definitions = parse(wikitext, startIndex);
[
'first defintion',
'second definition',
...
]