0.0.1 • Published 5 months ago

wtf-plugin-debug v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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

0.0.1

5 months ago