Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    markupifypublic

    markupify

    Highlight your JSON with HTML markup

    npm install markupify
    

    Markupify will take a JSON document and add markup to it so it can be styled in a browser.

    var markupify = require('markupify');
     
    var html = markupify({hello:'world'});
     
    console.log(html);

    The above example will print the following HTML

    <div class="markupify">{
        <span class="key">hello:</span> <span class="string">"world"</span>
    }</div>

    Afterwards you can use css to style your output to your liking. A stylesheet similar to JSON view is included in style.css

    Keywords

    none

    install

    npm i markupify

    Downloadsweekly downloads

    3

    version

    0.1.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar