@moonwalker/less-to-stylus
Basic Less to Stylus convertion
Last updated 2 years ago by vio .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @moonwalker/less-to-stylus 
SYNC missed versions from official npm registry.

Less-to-Stylus

Basic .less to .stylus conversion.

Based on https://github.com/vio/semantic-ui-stylu://gist.github.com/MoOx/3490671

Usage

CLI

$ npm install -g @moonwalker/less-to-stylus

$ less-to-stylus -h
less-to-stylus <file> > output.styl

Convert .less to .stylus

Positionals:
  file  Less file                                                       [string]

Options:
  --version                 Show version number                        [boolean]
  --variable-name-prefix    Prefix variable names with a string,
                            default `''` (`$` is added automatically)   [string]
  --conditional-assignment  Replace all assignments with conditional assignments
                                                                       [boolean]
  --help                    Show help                                  [boolean]

### Javascript

```shell
$ npm install -D @moonwalker/less-to-stylus
const fs = require('fs');
const less2Stylus = require('@moonwalker/less-to-stylus');

fs.readFile('./source.less', 'utf8', (err, source) => {
  const output = less2Stylus.convert(source);

  console.log(output);
});

Use Stylus plugin

Some Less functionality does not have a Stylus correspondent. The plugin can help bridge some of the differences:

  • @import (optional)

Current Tags

  • 0.1.4                                ...           latest (2 years ago)

5 Versions

  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Downloads
Today 0
This Week 1
This Month 2
Last Day 0
Last Week 1
Last Month 1
Dependencies (3)
Dev Dependencies (4)

Copyright 2014 - 2016 © taobao.org |