# stylus-less-plugin

> Stylus plugin to import less variables

Latest version **0.0.2** (published 2015-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install stylus-less-plugin
pnpm add stylus-less-plugin
yarn add stylus-less-plugin
bun add stylus-less-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2015-12-21 |
| First published | 2015-12-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | julianwielga |

## Links

- npm: https://www.npmjs.com/package/stylus-less-plugin
- Repository: https://github.com/JulianWielga/stylus-less
- Homepage: https://github.com/JulianWielga/stylus-less#readme
- Issues: https://github.com/JulianWielga/stylus-less/issues
- npm.io page: https://npm.io/package/stylus-less-plugin

## Dependencies (3)

- [less](https://npm.io/package/less.md) 1.4.2
- [stylus](https://npm.io/package/stylus.md) 0.49.x
- [underscore](https://npm.io/package/underscore.md) ^1.8.3

## Recent versions

- 0.0.2 (latest) — 2015-12-21
- 0.0.1 — 2015-12-21

## README

## Installation

```bash
$ npm install stylus-less-plugin
```

## JavaScript API

 Below is an example of how to utilize stylus-less and stylus with the connect framework (or express).

```javascript
var connect = require('connect')
  , stylus = require('stylus')
  , plugin = require('stylus-less-plugin');

var server = connect();

function compile(str, path) {
  return stylus(str)
	.set('filename', path)
	.set('compress', true)
	.use(plugin());
}

server.use(stylus.middleware({
	src: __dirname
  , compile: compile
}));
```

## Stylus API

  To gain access to everything stylus-less has to offer, simply add:

  ```css
  importLess('pathTo.less')
  ```

## Testing

 You will first need to install the dependencies:

 ```bash
    $ npm install -d
 ```

 Run the automated test cases:

 ```bash
    $ npm test
 ```

## Contributors

### Less to stylus compilation
  - [Andrey Popp](https://github.com/andreypopp/less2stylus)

### Project skeleton from nib
  - [TJ Holowaychuk](https://github.com/tj) (Original Creator)
  - [Sean Lang](https://github.com/slang800) (Current Maintainer)
  - [Isaac Johnston](https://github.com/superstructor)
  - [Everyone Else](https://github.com/tj/nib/contributors)

---
_Source: https://npm.io/package/stylus-less-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
