Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/demsking/less2styl

Convert LESS to Stylus
https://github.com/demsking/less2styl

less stylus

Last synced: 7 days ago
JSON representation

Convert LESS to Stylus

Awesome Lists containing this project

README

        

# LESS to Stylus converter

Convert LESS to Stylus.

## Installation

```shell
npm install -g less2styl
```

## Command line usage

```shell
less2styl styles.less > styles.styl
```

## Programmatic usage

```js
less2styl(src, [options], done);
```

Example:

```js
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