Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

htmlbook

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmlbook

HTML to HTMLBook parser

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
increased by18.18%
Maintainers
1
Weekly downloads
 
Created
Source

htmlbook.js

Parses HTML into HTMLBook.

Setup

Browser

Add the htmlbook.js script to a page with jQuery (tested with jQuery 1.10.2) and Marked.

Node.js

Install with npm: npm install -g htmlbook

Usage

Browser & Node.js

For both the browser and Node.js, usage is the same

var input = "HTML TEXT OR JQUERY OBJECT"
var output = HTMLBook(input).parse(opts);

Command Line

Installing this package with npm and the -g flag will install an executable.

$ htmlbook -s SOURCE_FILE -o OUTPUT_FILE

Additionally, type $ htmlbook --help for all options.

Opts

Below is a list of available options, default value is emphasized.

  • sourceFormat: html or markdown
  • fragment: false or true
  • level: chapter or book

Keywords

FAQs

Package last updated on 30 Jul 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc