šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Book a DemoInstallSign in
Socket

w3c-css-validator

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

w3c-css-validator

Easily validate CSS using W3C's public CSS validator service

1.4.0
latest
Source
npm
Version published
Weekly downloads
7.2K
-10.53%
Maintainers
2
Weekly downloads
Ā 
Created
Source

W3C CSS Validator

npm bundle size Codecov coverage npm downloads npm release tested with Rugged license

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.

Keywords

css

FAQs

Package last updated on 09 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts