Expand CSS shorthands.
For HTML E-maliers.
$ npm install --save css-longhand
Supported CSS properties:
margin
padding
border
var cssLonghand = require('css-longhand');
cssLonghand('/path/to/css');
.classname {
margin: 0;
}
Pass to cssLonghand will result in:
.classname {
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
}
TODO:
Re-implement with streams (find the comment in the code)
Support more CSS properties.
MIT © hemanth.hm