@one-for-all/scss-forming
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @one-for-all/scss-forming

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.81 MB

Total Files

134

Last publish

Collaborators

  • markduannnn