styled-to-jss

2.4.0 • Public • Published

Version is still in beta and only does line by line convertions at the moment

Set up

We use yarn as our package manager. To get dependencies run
yarn install
For development run:
yarn install --dev

CLI usage

Run yarn global add styled-to-jss or npm install styled-to-jss -g if you use npm
Example usage
styled-to-jss --path="./style.js" --output="./style.converted.js"

Flags

--path [Relative path to the file that will be converted]
--output [Where the converted version be written to (if not specified it will output to stdout)]

Regular usage

  import extractor from 'styled-to-jss';
  const newString = extractor('background-color: red;');
  console.log(newString);// backgroundColor: 'red',

Readme

Keywords

none

Package Sidebar

Install

npm i styled-to-jss

Weekly Downloads

2

Version

2.4.0

License

MIT

Last publish

Collaborators

  • whoatedacake