
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Converts Markdown to HTMLBook.
Install with npm: npm install -g htmlbook
Within Node, htmlbook.js works on strings.
var htmlbook = require('htmlbook');
var htmlbook_output = htmlbook("source content").parse();
To use htmlbook.js with a file, in Node.js do the following:
var fs = require('fs');
var htmlbook = require('htmlbook');
var htmlbook_output;
fs.readFile('path/to/file.md', 'utf-8', function (error, data) {
if (error)
return error;
htmlbook_output = htmlbook(data).parse();
})
$ htmlbook -s SOURCE_FILE -o OUTPUT_FILE
Additionally, type $ htmlbook --help
for all options.
Below is a list of available options, default value is emphasized.
There are two suites of tests for this repository. The first is spec/htmlbook_spec.js
and tests the package for expected output. Run this test with the following:
$ jasmine-node spec/htmlbook_spec.js
The second test suite checks to be sure that the file being tested in htmlbook_spec
are in fact being output to valid HTMLBook. It's no use writing tests that pass unless they pass on valid output. These tests are separated because the validation takes longer.
$ jasmine-node spec/validation_spec.js
FAQs
Markdown to HTMLBook converter
The npm package htmlbook receives a total of 5 weekly downloads. As such, htmlbook popularity was classified as not popular.
We found that htmlbook demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.