wtf-plugin-debug

0.0.1 • Public • Published
wtf-plugin-debug
a plugin for wtf_wikipedia

npm install wtf-plugin-debug

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

Readme

Keywords

none

Package Sidebar

Install

npm i wtf-plugin-debug

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

10.2 kB

Total Files

6

Last publish

Collaborators

  • spencermountain