style-object
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

style-object

Convert CSS in JS to JavaScript object.

Installation

npm install --save style-object

Usage

import {style} from 'style-object'
 
const obj = style`
  background-color: red;
`
 
console.log(obj) // -> {
                 //   backgroundColor: "red",
                 // }

/style-object/

    Package Sidebar

    Install

    npm i style-object

    Weekly Downloads

    2

    Version

    0.0.10

    License

    MIT

    Last publish

    Collaborators

    • minodisk