Gathering detailed insights and metrics for @zarv1k/slate-hyperprint
Gathering detailed insights and metrics for @zarv1k/slate-hyperprint
Gathering detailed insights and metrics for @zarv1k/slate-hyperprint
Gathering detailed insights and metrics for @zarv1k/slate-hyperprint
A library to convert Slate models to their slate-hyperscript representation
npm install @zarv1k/slate-hyperprint
Typescript
Module System
Node Version
NPM Version
JavaScript (84.05%)
CSS (13.23%)
HTML (2.72%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
2 Stars
120 Commits
2 Watchers
8 Branches
1 Contributors
Updated on Jan 28, 2023
Latest Version
3.2.0
Package Id
@zarv1k/slate-hyperprint@3.2.0
Unpacked Size
39.70 kB
Size
12.13 kB
File Count
13
NPM Version
7.19.1
Node Version
16.5.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
1
23
A library to convert Slate models to their slate-hyperscript representation.
You can use @zarv1k/slate-hyperprint
as a library to:
See the online demo, that converts a Slate JSON representation to a Slate hyperscript representation.
yarn add @zarv1k/slate-hyperprint [--dev]
1import Slate from 'slate'; 2import hyperprint from '@zarv1k/slate-hyperprint'; 3 4console.log( 5 hyperprint( 6 Slate.Value.create({ 7 document: Slate.Document.create({ 8 nodes: [ 9 Slate.Block.create({ 10 type: 'paragraph', 11 data: { a: 1 }, 12 nodes: [ 13 Slate.Text.create('Hello') 14 ] 15 } 16 )] 17 }) 18 }) 19 ) 20); 21// <value> 22// <document> 23// <paragraph a={1}> 24// Hello 25// </paragraph> 26// </document> 27// </value> 28 29hyperprint.log(...) 30// Equivalent to console.log(hyperprint(...))
slate-hyperprint
accepts an option object:
1hyperprint(value, options)
preserveData: boolean = false
True to print Slate Value's datapreserveKeys: boolean = false
True to print node keysstrict: boolean = false
True to preserve empty texts and other things that the formatting would
otherwise omit. Useful when using hyperprint compare values in tests, because
the output is stricter.prettier: Object = { semi: false, singleQuote: true, tabWidth: 2 }
Prettier config to use when formatting the output JSX.yarn test
yarn build
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/15 approved changesets -- score normalized to 0
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
75 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More