Skip to content

parse5 backed unclosed markup checker that works offline.

Notifications You must be signed in to change notification settings

sveisvei/unclosed-markup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unclosed-markup

Build Status

parse5 backed unclosed markup checker that works offline.

Requires node version 6.

Usage api

const check = require('unclosed-markup');

// input as a string
check('<div><a></div>')
    .then(() => {})
    .catch(errors => console.error(errors));

// or input as a readstream
check(readstream)
    .then(() => {})
    .catch(errors => console.error(errors));

// arrays are also supported
check(['<div><a></div>', '<div><a></div>'])
    .then(() => {})
    .catch(errors => console.error(errors));

Usage cli

$ unclosed-markup ./path/to/file

$ unclosed-markup --content="<div>asd</div>"

About

parse5 backed unclosed markup checker that works offline.

Resources

Stars

Watchers

Forks

Packages