# html2bbcode

> Convert HTML to BBCode

Latest version **1.2.6** (published 2018-05-14) · MIT license · 0 weekly downloads

## Install

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

Provides the command `html2bbcode`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.6 |
| Published | 2018-05-14 |
| First published | 2015-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10 |
| Dependencies | 0 |
| Unpacked size | 70.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | tengattack |
| Maintainers | tengattack |
| Keywords | html2bbcode, bbcode, html, convert, conversion |

## Links

- npm: https://www.npmjs.com/package/html2bbcode
- Repository: https://github.com/tengattack/html2bbcode.js
- Homepage: http://github.com/tengattack/html2bbcode.js
- Issues: https://github.com/tengattack/html2bbcode.js/issues
- npm.io page: https://npm.io/package/html2bbcode

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.2.6 (latest) — 2018-05-14
- 1.2.5 — 2016-12-26
- 1.2.3 — 2015-08-30
- 1.2.2 — 2015-08-30
- 1.2.1 — 2015-08-29
- 1.2.0 — 2015-08-29
- 1.1.2 — 2015-08-28
- 1.1.0 — 2015-08-28
- 1.0.9 — 2015-08-28
- 1.0.8 — 2015-08-28
- 1.0.6 — 2015-08-28
- 1.0.5 — 2015-08-28
- 1.0.3 — 2015-08-27
- 1.0.2 — 2015-08-27
- 1.0.1 — 2015-08-27

## README

# html2bbcode.js

[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Downloads][downloads-image]][npm-url]

Convert HTML to BBCode

## Licenses

MIT

## Usage:

```javascript
var HTML2BBCode = require('./html2bbcode').HTML2BBCode;

var converter = new HTML2BBCode(opts);
var bbcode = converter.feed(data);
console.log(bbcode.toString());
```

```bash
$ npm install -g html2bbcode
$ html2bbcode --imagescale test.html
```

## Options

```javascript
new HTML2BBCode({
  // enable image scale, default: false
  imagescale: true,
  // enable transform pixel size to size 1-7, default: false
  transsize: true,
  // disable list <ul> <ol> <li> support, default: false
  nolist: true,
  // disable text-align center support, default: false
  noalign: true,
  // disable HTML headings support, transform to size, default: false
  noheadings: true
});
```

[downloads-image]: http://img.shields.io/npm/dm/html2bbcode.svg

[npm-url]: https://npmjs.org/package/html2bbcode
[npm-image]: http://img.shields.io/npm/v/html2bbcode.svg

[travis-url]: https://travis-ci.org/tengattack/html2bbcode.js
[travis-image]: http://img.shields.io/travis/tengattack/html2bbcode.js.svg

[coveralls-url]: https://coveralls.io/r/tengattack/html2bbcode.js
[coveralls-image]: http://img.shields.io/coveralls/tengattack/html2bbcode.js/master.svg

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