Simple binding to libtidy; based off original tidy bindings for node by Martyn Garcia
C++ Python JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.npmignore
README.md
config
node_tidy.cc
package.json
test_tidy.js
tidy.js
wscript

README.md

tidy2

libtidy bindings for node.js

usage

var tidy = require('tidy');
var cleaned = tidy.tidyString(inputHTML)

compatibility

tidy2 has been tested on OS X 10.8 and Ubuntu 12.04

future

  • Expose all options as dictionary to tidyString

dependencies

Ubuntu

  • libtidy-dev – sudo apt-get install libtidy-dev

attributions

tidy2 was based on the original tidy bindings by Martyn Garcia

changelog

v0.0.2

  • Converted tidy, which would not build on OS X or Ubuntu
  • Removed jsdom and other unnecessary dependencies
  • Fixed significant memory leak
  • Added additional options for sane conversion