![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.
@burger-editor/frozen-patty
Advanced tools
Pure HTML to JSON converter that not use template engine.
Pure HTML to JSON converter that not use template engine.
$ npm install -D @burger-editor/frozen-patty
import FrozenPatty from 'frozen-patty';
FrozenPatty('<div data-field="text">value</div>').toJSON(); // => { text: 'value' }
FrozenPatty('<div data-field="field-name">value</div>').toJSON(); // => { 'field-name': 'value' }
FrozenPatty('<a href="http://localhost" data-field="href:href">link</a>').toJSON(); // => { 'href': 'http://localhost' }
FrozenPatty('<div data-bge="text">value</div>', { attr: 'bge' }).toJSON(); // => { text: 'value' }
FrozenPatty('<div data-field="text">value</div>').merge({ text: 'merged' }).toHTML(); // => "<div data-field="text">merged</div>";
Extraction data from HTML.
args | type | required | descriptions |
---|---|---|---|
html | string | required | Original HTML |
options | Object | optional | † |
options | type | default | descriptions |
---|---|---|---|
attr | string | "field" | Data attribute name for specifying the node that FrozenPatty treats as a field |
Data merge
args | type | required | descriptions |
---|---|---|---|
data | Object | required | New data |
Data to plain Object.
Render to HTML as string.
FAQs
Pure HTML to JSON converter that not use template engine.
The npm package @burger-editor/frozen-patty receives a total of 5 weekly downloads. As such, @burger-editor/frozen-patty popularity was classified as not popular.
We found that @burger-editor/frozen-patty demonstrated a healthy version release cadence and project activity because the last version was released less than 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.