1.0.0 • Published 2 years ago

@one-for-all/scss-forming v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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