transform stylesheets to JS objects
style.css
.test { font-size: 20px; }
.test23 { padding-top: 5px; }
.test23 .testInner { font-decoration: none; }
output.js
{
test: {'fontSize': '20px'},
test23: {
'fontSize': '23px',
testInner: {'fontDecoration': 'none'}
}
}
npm install -g @stackr23/styleobjects
npx @stackr/styleobjects --input ./style.css --output ./output.js
--input - {String:path
| String
| URL
| Buffer
} - required
--outout - {String:path
}