Nullifying Precipitation Machine
Miss any of our Open RFC calls?Watch the recordings here! »

html2bbcode

1.2.6 • Public • Published

html2bbcode.js

NPM version Build Status Coveralls Status Downloads

Convert HTML to BBCode

Licenses

MIT

Usage:

var HTML2BBCode = require('./html2bbcode').HTML2BBCode;
 
var converter = new HTML2BBCode(opts);
var bbcode = converter.feed(data);
console.log(bbcode.toString());
$ npm install -g html2bbcode
$ html2bbcode --imagescale test.html

Options

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
});

Install

npm i html2bbcode

DownloadsWeekly Downloads

225

Version

1.2.6

License

MIT

Unpacked Size

72.1 kB

Total Files

13

Last publish

Collaborators

  • avatar