
Product
Introducing Module Reachability: Focus on the Vulnerabilities That Matter
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
h5o is an implementation of the HTML5 outline algorithm in JavaScript. Specifications:
If you like this tool, please consider a charitable donation to Ocean Voyages Institute (Project Kaisei).
npm install h5o
(as of 2015, you should not be using any other way of managing your JS dependencies, but
you can still download latest release)
dist/outliner.min.js
with a fallback to global HTML5Outline
or
var HTML5Outline = require('h5o')
in node or browserifyvar outline = HTML5Outline(startFrom)
(you likely want startFrom
to be document.body
). Returned value is an outline object, with sections.outline.asHTML( [ options | createLinks ])
to get HTML with an ordered list.
options.createLinks
(or createLinks
) is true
, the DOM will be amended with IDs and the list will contain links for navigation.options.skipToHeader
is true, the outline HTML will only include the sub-sections of the first section in
the outline (which is usually the body
), i.e. it will only contain the sections of the documents, skipping
the title of the whole document.Visit https://h5o.github.io/ for the Chrome extension and bookmarklet.
node
or iojs
(includes npm
)npm install -g grunt-cli
npm install
in your local clone of this repoRun grunt test
jsdom
and jsdom-compat
Run grunt watch
getHeadingElementRank
into getRankingHeadingElement
and getRank
Section
no longer has asHTML
(out of scope)Outline
is not a separate object of its owngetSectionHeadingRank
cleanupjsdom
v4.x and v3.x via jsdom-compat
navfirst
, issue-13
. Issue #13 was partly invalid.hgroup
without any h1
-h6
insidegrunt start-dev
in favor a simpler grunt watch
.grunt
folderjsdom
grunt
Originally lived on Google Code, if you like archeology
FAQs
HTML5 outliner
The npm package h5o receives a total of 404 weekly downloads. As such, h5o popularity was classified as not popular.
We found that h5o demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
Company News
Socket is bringing best-in-class reachability analysis into the platform — cutting false positives, accelerating triage, and cementing our place as the leader in software supply chain security.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.