@one-for-all/scss-forming
v1.0.0
Published
Transforming/Manipulating SCSS in browser
Downloads
2
Readme
SCSS Forming
Forming SCSS to the shape you expected.
import forming from '@one-for-all/scss-forming';
forming(someUglySCSS).then(({ scss, ast }) => {
console.log('cleaned SCSS:\n', scss);
return toSCSS(ast);
}).then((scssStr) => {
// same nice cleaned scss
});
const { scss, ast } = forming(staledAST);
Todo
- sort rules
- add comment