1.1.9 • Published 6 years ago

css-to-stylus-converter v1.1.9

Weekly downloads
9
License
MIT
Repository
github
Last release
6 years ago

Build Status npm version Dependency Status

Css To Stylus

Css to Stylus converter

=> Try VSCODE extension here <=

Install:

npm install -g css-to-stylus-converter

Node usage:

const cssToStylus = require('css-to-stylus-converter');

/**
 unprefix: boolean,
 indent: number,
 keepColons: boolean,
 cssSyntax: boolean,
 separateRules: boolean,
 removeComments: boolean,
 colorVariables: boolean,
 colorPrefix: string
 */

const stylusResult = cssToStylus(cssContent, converterOptions);

CLI usage:

Usage: css-to-stylus [options] <file ...>

  Options:

    -h, --help                   output usage information
    -V, --version                output the version number
    -u, --unprefix               remove vendor prefixes
    -i, --indent [n]             set indentation (number|tab)
    -c, --css-syntax             keep css syntax
    -l, --keep-colons            keep colons
    -s, --separate-rules         add new line before next rule
    -r, --remove-comments        remove comments
    -o, --color-variables        create color variables at top of file
    -p, --color-prefix [prefix]  color variables prefix
    -d, --output-dir [dir]       output dir
    -v, --verbose                show information

  Examples:

    # Generate file1.styl & file2.styl in current folder
    css-to-stylus [options] file1.css file2.css

    # Generate file.styl in current folder from style.css
    cat style.css | css-to-stylus [options] >> file.styl

    # Generate random name file in dir folder
    cat style.css | css-to-stylus -d dir
1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.9

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago