Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 

CSS Parser

A lightweight CSS parser in JavaScript / TypeScript.

The returned structure

[
  {
    selector: string;
    type?: string;
    children?: [...];
    comments?: string;
    styles?: string;
    rules?: [
      {
        key: string;
        value: string;
        defective?: boolean;
      }, ...
    ]
  }, ...
]

Quick Start

Install the css-parser from the github repo.

npm install sibvrv/css-parser

Development

Build

npm run build

How to test

npm run test

About

A lightweight CSS parser in JavaScript / TypeScript.

Resources

License

Releases

No releases published

Packages

No packages published