0.1.0 • Published 4 years ago

haml-formatter v0.1.0

Weekly downloads
3
License
MIT
Repository
-
Last release
4 years ago

Haml Formatter

Custom Custom circleci npmV min install githubLastCommit

Usage

import { FormatHaml } from 'haml-formatter';

const result = FormatHaml(
  `

.level
    .level-left
               %h1.title
      %i.fa.fa-map-marker

                .level
                .level-left
     %h1.title
                  %i.fa.fa-map-marker
                  
                  `
);

Result

.level
    .level-left
        %h1.title
    %i.fa.fa-map-marker

        .level
            .level-left
    %h1.title
        %i.fa.fa-map-marker

Docs

index

Options
interface Options {
  tabSize: number;
  insertSpaces: boolean;
}
FormatHaml
function FormatHaml(text: string, options: Partial<Options>): string;

Generated with suf-cli

License

Copyright (c) 2019 Leonard Grosoli Licensed under the MIT license.

0.1.0

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago