wtf-plugin-debug
v0.0.1
Published
debugging plugin for wtf_wikipedia
Downloads
2
Readme
Some helper methods for finding borked pages and parsing errors in i18n wikipedias
const wtf = require('wtf_wikipedia')
wtf.extend(require('wtf-plugin-debug'))
let doc = wtf(`hello , world`)
doc.isBad()
// 'dangling-comma'
let doc = wtf(`hello ( world.`)
doc.isBad()
// 'unclosed-paren'
let doc = wtf(`hello style="width:50%"`)
doc.isBad()
// 'unparsed-style'
let doc = await wtf.fetch('Hamburg')
doc.isBad()
//maybe
MIT