New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

roidjson

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

roidjson

json-map at the very basic is a json data parser. It manipulates the structure of a json object or string, allowing you to Map parts "object, properties and values, of json with predefined meta values.

  • 0.1.2-beta
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

#Json-map

json-map at the very basic is a json data parser. It manipulates the structure of a json object or string, allowing you to Map parts "object, properties and values, of json with predefined meta values.

##Status : ALPHA NOT FULLY TESTED

##Usage JSON-map is made up of two important parts which includes the interface that describes the meta charactes and the entry point which runs the program

To run the module use

const jsonMap = require("jsonMap");
const jsonMapInterface = jsonMap.

.

const transform = require("./index").transformJson;
const transformInterface = require("./index").delimeterInterface;

//console.log( delimeter instanceof transformInterface);

const json = {
    "sammy": {
        "username": "SammyShark",
        "location": "Indian Ocean",
    },
    "jesse": {
        "username": "JesseOctopus",
    },
    "jamie": {
        "username": "JamieMantisShrimp",
        "jamie2": {
            "username": "JamieMantisShrimp",
        },
        "location": "Pacific Ocean",
        "online": true,
        "followers": 654
    }
};

//Inherit and override default delimeter
const delimeter = Object.create(transformInterface);

delimeter.beoreNode = " <blockquote> ";
delimeter.afterNode = "</blockquote> ";
delimeter.beforeSuit = "<ul>";
delimeter.afterSuit = "</ul>";
delimeter.beforeProperty = " <li> ";
delimeter.afterProperty = " </li> ";
delimeter.beforeValue = "";
delimeter.afterValue = "";

console.log(transform(json, delimeter));

##Contributors

  • Ndifreke Ekim

    ##Change Log v1.0 : Initial release

    ##MIT Licenced

  • FAQs

    Package last updated on 18 Sep 2018

    Did you know?

    Socket

    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
    • Changelog

    Packages

    npm

    Stay in touch

    Get open source security insights delivered straight into your inbox.


    • Terms
    • Privacy
    • Security

    Made with ⚡️ by Socket Inc