![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
jerrymander
Advanced tools
Pages on the web are modeled as data in the form of a tree. Nodes have child
nodes, such that your average webpage consists of containers of containers of
containers of--ultimately--text or media content. In certain contexts, notably
from the perspective of a user, webpages are better represented with the flat
structure of a more traditional document. Jerry is a framework for translating
between webpages-as-tree-structures and -as-linear-text. With jerry, every
Node
on a webpage is given an Address
---which can then be manipulated in
various ways.
$ npm install jerrymander
const jerry = new Jerry()
jerry.getSelection().highlight()
localStorage.highlights = JSON.stringify(jerry.serialize())
new Jerry(root = document.body)
create a Jerry instance around a given root node.
Jerry#getSelection(): Address
get the address of the current user selection.
Address#highlight(className = 'highlight)
highlight the content at a given address (takes an optional className to apply).
Address#select()
set selected text range to the contents of this address
Jerry#serialize(): string[]
serializes all highlights for storage or transmission.
Jerry#deserialize(highlights: string[]): Address[]
deserialize a serialization result back into Addresses.
Address#getHash(): number
get the hash of the content at an address.
FAQs
text-content addressing for the web
The npm package jerrymander receives a total of 4 weekly downloads. As such, jerrymander popularity was classified as not popular.
We found that jerrymander 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.