# xd-html2bbcode

> Convert HTML to BBCode with custom codes

Latest version **1.0.0** (published 2021-04-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install xd-html2bbcode
pnpm add xd-html2bbcode
yarn add xd-html2bbcode
bun add xd-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.0.0 |
| Published | 2021-04-13 |
| First published | 2021-04-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 74.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Amanda |
| Maintainers | amandacjl |
| Keywords | html2bbcode, bbcode, html, convert, conversion, custom |

## Links

- npm: https://www.npmjs.com/package/xd-html2bbcode
- Repository: http://gitlab.ragnaroknotes.com/npm-modules/xd-html2bbcode
- npm.io page: https://npm.io/package/xd-html2bbcode

## Dependencies (1)

- [clear](https://npm.io/package/clear.md) ^0.1.0

## 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.0.0 (latest) — 2021-04-13

## 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

## Installation:

```
npm i git+http://gitlab.ragnaroknotes.com/npm-modules/xd-html2bbcode.git
```


## 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/xd-html2bbcode · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
