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",
                 // }

Readme

Keywords

none

Package Sidebar

Install

npm i style-object

Weekly Downloads

0

Version

0.0.10

License

MIT

Last publish

Collaborators

  • minodisk