# htmltoless

> Converts HTML to LESS

Latest version **0.0.1** (published 2014-10-26) · 0 weekly downloads

## Install

```sh
npm install htmltoless
pnpm add htmltoless
yarn add htmltoless
bun add htmltoless
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-10-26 |
| First published | 2014-10-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | case sandberg |
| Maintainers | case |

## Links

- npm: https://www.npmjs.com/package/htmltoless
- Repository: https://github.com/casesandberg/htmltoless
- Issues: https://github.com/casesandberg/htmltoless/issues
- npm.io page: https://npm.io/package/htmltoless

## Dependencies (1)

- [htmlparser](https://npm.io/package/htmlparser.md) ^1.7.7

## Recent versions

- 0.0.1 (latest) — 2014-10-26

## README

#HTML to LESS
Converts html into structured less.

###Installing

    npm install htmltoless

###Useage

```javascript
var htmltoless = require("htmltoless");

var html =
'<li class="person">' +
    '<div class="person-avatar">' +
        '<div class="avatar" style="background-image: url("http://www.conferenceiq.com/media/avatars/963/avatar-original-bpfull.jpg");"></div>' +
    '</div>' +
    '<div class="person-name">' +
        '<span>Richard Branson</span>' +
    '</div>' +
'</li>';

var less = htmltoless.parse(html);

console.log(less);
```

###Output

```less
.person{

	.person-avatar{

		.avatar{

		}
	}
	.person-name{

		span{

		}
	}
}
```

###Run Tests
    mocha

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