Package Exports
- sass-formatter
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sass-formatter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Sass Formatter
Website sass-formatter.syler.de
Usage
import { SassFormatter } from 'sass-formatter';
const result = SassFormatter.Format(
`
span
color: none
@for $i from 0 through 2
&:nth-child(#{$i})
color: none
@each $author in $list
.photo-#{$author}
background: image-url("avatars/#{$author}.png") no-repeat
@while $types > 0
.while-#{$types}
width: $type-width + $types`
);Result
span
color: none
@for $i from 0 through 2
&:nth-child(#{$i})
color: none
@each $author in $list
.photo-#{$author}
background: image-url("avatars/#{$author}.png") no-repeat
@while $types > 0
.while-#{$types}
width: $type-width + $types
Docs
config
SassFormatterConfig
interface SassFormatterConfig {
/**Enable debug messages */
debug: boolean;
/**delete rows that are empty. */
deleteEmptyRows: boolean;
/**Delete trailing whitespace.*/
deleteWhitespace: boolean;
/**Convert css or scss to sass */
convert: boolean;
/**set the space after the colon of a property to one.*/
setPropertySpace: boolean;
tabSize: number;
/**insert spaces or tabs. */
insertSpaces: boolean;
}Generated with suf-cli
License
Copyright (c) 2019 Leonard Grosoli Licensed under the MIT license.