We use yarn as our package manager. To get dependencies run
yarn install
For development run:
yarn install --dev
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"
--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)]
import extractor from 'styled-to-jss';
const newString = extractor('background-color: red;');
console.log(newString);// backgroundColor: 'red',