splunkkeyvalue

0.1.0 • Public • Published

splunkkeyvalue

Convert json to keyvalue pair key=value for first level json. It will only convert first level nested. It will not print out array objects.

Installation

npm install splunkkeyvalue --save

Usage

var splunkkeyvalue = require('splunkkeyvalue');

var json = {
    id: 123456,
    name: "frank",
    last: "smith"
};

var string = splunkkeyvalue.jsonToSplunk("",json);
console.log(string);

Tests

npm test

Contributing

Very simple script.

Release History

  • 0.2.0 Initial release

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i splunkkeyvalue

    Weekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    5.26 kB

    Total Files

    4

    Last publish

    Collaborators

    • jjwallaby