Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
bem-json-to-html
Advanced tools
BEMJSON to HTML serializer
This is optimized part of jsot-bh for generation HTML from constructed BEMJSON.
npm install bem-json-to-html --save
Creates serializer object.
Options:
jsAttrScheme
String - If js
, attribute with js params will be prefixed with return
(default: js
).jsAttrName
String - Specifies name of attribute, that will contain jsParams
(default: onclick
).defaultTag
String - Default tag name for block without tag
property (default: div
).modificatorSeparator
String - Suffix to use for mods instead of default _
one. (E.g. {modificatorSeparator: '--'}
).addDefautTagAttributes
Boolean - Add default tags attributes like src
, href
(defaukt: false
).Returns serialized HTML string.
trivial
4,133,717 op/s » bemjson-to-html
2,371,357 op/s » bh
simple
109,658 op/s » bemjson-to-html
78,604 op/s » bh
full
27,264 op/s » bemjson-to-html
23,367 op/s » bh
stringify
1,508,587 op/s » stringify (no escaping)
843,899 op/s » stringify (escaped with replace)
388,025 op/s » stringify (escaped)
312,156 op/s » bemjson-to-html
220,219 op/s » bh
MIT (c) Vesvolod Strukchinsky, Pavlo Vozniuk
FAQs
BEMJSON to HTML serializer
The npm package bem-json-to-html receives a total of 10 weekly downloads. As such, bem-json-to-html popularity was classified as not popular.
We found that bem-json-to-html 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.