New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

css2json

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css2json

Parse css to json.

latest
Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
836
-20.23%
Maintainers
1
Weekly downloads
 
Created
Source

Css2json

Css2json transform CSS to JSON.

Installation

npm install css2json

Usage

var css2json = require('css2json');
var json = css2json(css);

Example

The css

h1#header {
  font-family: 'Times New Roman';
}

p {
  margin-right: 100px;
}

h1#header {
  color: #ff0000  
}

would transform into

{
  "h1#header": {
    "font-family": "Times New Roman",
    "color": "#ff0000"
  },
  "p": {
    "margin-right": "100px"
  }
}

FAQs

Package last updated on 20 Jan 2020

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