Skip to content

Latest commit

 

History

History

html2shaven

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Html2Shaven

Convert HTML documents to shaven arrays

Installation

npm install --save html2shaven

Usage

As a Javascript module:

const fs = require('fs')
const html2shaven = require('./index.js')

let htmlString = fs.readFileSync('document.html', 'utf8')
let shavenArray = html2shaven(htmlString)

On the command line:

html2shaven < document.html > document.json5
  NODES
COMMUNITY 1
Project 1
USERS 1