1.0.1 • Published 7 years ago

less2styl v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

LESS to Stylus converter

Convert LESS to Stylus.

Installation

npm install -g less2styl

Command line usage

less2styl styles.less > styles.styl

Programmatic usage

less2styl(src, [options], done);

Example:

var less2styl = require('less2styl');

var src = '.class { width: (1 + 1) }';
var options = {  
    indent: '2',      // possible indent values: 'tab' or number (of spaces)
    unPrefix: false,
    keepColons: true
    cssSyntax: false,
};

less2styl(src, options, function(output) {
    console.log(output);
});

License

MIT