@ruslanuz/sass-convert
v0.1.1
Published
A small utility for converting `sass` files to `scss` or `scss` files to `sass` with `node.js`.
Readme
Sass/scss files converter for node.js
A small utility for converting sass files to scss or scss files to sass with node.js.
The implementation based on the code from the sass-scss-converter repository
Installation and Usage
Installation
Npm
npm i @ruslanuz/sass-convertYarn
yarn add @ruslanuz/sass-convertPnpm
pnpm add @ruslanuz/sass-convertUsage
const { convert } = require('@ruslanuz/sass-convert');
// Convert all sass files in src folder including subfolders the to scss
convert('./src/**/*.sass', { syntax: 'scss' });
// Convert index.scss file from scss to sass
convert('./style/index.scss', {syntax: 'sass'});
