Parse a wiktionary article to JSON
npm i wiktionary-json
const wiktionaryJson = require('wiktionary-json')
// parse content from a full wiktionary page HTML
const content = wiktionaryJson('<html>...')
[{
"headingLevel":1,
"title":"plasma",
"children":[
{
"headingLevel":2,
"title":"English",
"children":[
{
"headingLevel":3,
"title":"Pronunciation",
"children":[...]
}
]
},
{
"headingLevel":2,
"title":"Estonian[edit]",
"children":[...]
}
]
}]