Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@b9g/revise
Advanced tools
Revise is a JavaScript library for creating [`contenteditable`-based](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable) rich-text editors in the browser. It provides a low-level, web-component based API for translating t
Revise is a JavaScript library for creating
contenteditable
-based
rich-text editors in the browser. It provides a low-level, web-component based
API for translating the DOM into string documents. The library also ships with
a compact data structure for representing edits to strings. Revise is intended
to be framework-agnostic, though currently it is only being tested with
Crank.
At present, this library is in an early beta. It is recommended for developers who aren’t afraid of stepping through DOM code in a debugger.
TKTKTKT
ContentAreaElement
A custom element class with an API similar to that of the JavaScript API for
the <textarea>
element.
This class provides special properties and methods for reading the current
value of the element’s contents and manipulating its selection.
value
selectionStart
selectionEnd
selectionDirection
setSelectionRange(selectionStart: number, selectionEnd: number, selectionDirection?: SelectionDirection): void;
indexAt(node: Node | null, offset: number): number
`nodeOffsetAt(index: number): [Node | null, number]
source(name: string): boolean
ContentEvent
Edit
operations(): Array<Operation>
apply(text: string): string
compose(that: Edit): Edit
invert(): Edit
normalize(): Edit
hasChangesBetween(start: number, end: number): boolean
Edit.createBuilder(value: string): EditBuilder
Edit.diff(text1: string, text2: string, hint?: number): Edit
EditBuilder
EditHistory
Keyer
FAQs
Revise is a JavaScript library for creating [`contenteditable`-based](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable) rich-text editors in the browser. It provides a low-level, web-component based API for translating t
The npm package @b9g/revise receives a total of 0 weekly downloads. As such, @b9g/revise popularity was classified as not popular.
We found that @b9g/revise 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.