Socket
Socket
Sign inDemoInstall

@son_xx/editor-js-parser

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @son_xx/editor-js-parser

easy change json data to html from editorjs


Version published
Weekly downloads
163
increased by4.49%
Maintainers
1
Install size
7.23 kB
Created
Weekly downloads
 

Readme

Source

editor-js-parser

npm install @son_xx/editor-js-parser

editor-js-parser is tool to convert json data to html from editorjs.
suported component

  1. checklist
  2. embed
  3. head
  4. link
  5. list
  6. paragraph
  7. quote
  8. raw

for styling quote and checklist we use bootstrap so make sure you have install bootstrap on your project

example

import Parser from '@son_xx/editor-js-parser'
const data = {
    time: 1605667704216, 
    version: "2.19.0"}
    blocks: Array(1)
        0:{ 
            data: {text: "header example",level: 2}
            type: "header"
        }     
    time: 1605667704216
    version: "2.19.0"
}

const result = Parser(data.blocks)
console.log(result)
// outout
// <h2>header example</h2>

LICENCE MIT

Keywords

FAQs

Last updated on 20 Nov 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc