1.3.2 ā€¢ Published 5 months ago

w3c-css-validator v1.3.2

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

W3C CSS Validator

A modern package for validating CSS using W3Cā€™s public CSS validator service. Its goal is to simplify and standardize the API that W3C exposes, so that it adheres to newer conventions and is intuitive and easy to use.

  • šŸ“¦ Written entirely in TypeScript
  • šŸ”¬ Thoroughly tested
  • āš”ļø Zero dependencies
  • šŸ¤ Promise-based design
  • āœØ Tiny size
  • šŸŒŽ Works in Node.js and browsers
  • šŸ“– Well documented

Quick start

Install with Yarn or npm:

yarn add w3c-css-validator
npm install w3c-css-validator

Import or require:

import cssValidator from 'w3c-css-validator';
const cssValidator = require('w3c-css-validator');

Validate some CSS:

const result = await cssValidator.validateText('.foo { text-align: center; }');

Documentation

Read the docs at: https://sparksuite.github.io/w3c-css-validator/docs/

Demo

See it in action: https://sparksuite.github.io/w3c-css-validator/demo/

Contributing

We love contributions! Contributing is easy; learn how.

1.3.2

5 months ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago