Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/demsking/less2styl
- Owner: demsking
- License: mit
- Created: 2016-03-20T05:00:16.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-26T07:37:10.000Z (almost 7 years ago)
- Last Synced: 2024-05-22T21:22:59.499Z (9 months ago)
- Topics: less, stylus
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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