Skip to content

A lightweight CSS parser in JavaScript / TypeScript.

License

Notifications You must be signed in to change notification settings

sibvrv/css-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published