Naive Puppets Marching

npm

Need private packages and team management tools?Check out npm Orgs. »

csstree-validator

1.5.1 • Public • Published

NPM version Build Status

CSS Tree Validator

How to use:

> npm i -g csstree-validator
> csstree-validator /path/to/style.css
> csstree-validator -h
Usage:

  csstree-validate [fileOrDir] [options]

Options:

  -h, --help               Output usage information
  -r, --reporter <name>    Format of output: console (default), checkstyle, json, gnu
  -v, --version            Output version

API

var validateFile = require('csstree-validator').validateFile;
var reporter = require('csstree-validator').reporters.checkstyle;
 
console.log(reporter(validateFile('/path/to/style.css')));

Ready to use

Some plugins that are using csstree-validator:

License

MIT

install

npm i csstree-validator

Downloadsweekly downloads

863

version

1.5.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability