You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@j-kallunki/css-in-to-js

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

@j-kallunki/css-in-to-js

CSS to CSS-in-JS and Styled converter

1.0.6
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

@j-kallunki/css-in-to-js

travis build codecov coverage version downloads MIT License

Convert any CSS-string to Styled-format object or CSS-in-JS object with CSS-declarations as strings.

Usage

yarn add @j-kallunki/css-in-to-js
OR
npm install --save @j-kallunki/css-in-to-js
import { cssToJs } from '@j-kallunki/css-in-to-js';
const cssObject = cssToJs(cssString);

Settings

cssToString

If you wan't to get CSS-declarations in CSS-string format use:

const cssObject = cssToJs(cssString, { cssToString: true })

Tools

minifyCss()

Minify CSS-string

Acknowledgements

Uses PostCSS for parsing the CSS.

Keywords

css

FAQs

Package last updated on 30 Dec 2019

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