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

    sigma-messagepublic

    node-sigma-message

    simple key-value message parser and formater

    introduction

    Format and parses string containing key-value pairs.

    synopsis

    var parser = require('sigma-message')();
     
    var obj = parse('key=value;other=val');
    console.log(obj);
    // outputs {key:value,other:val} 

    installation

    $ npm install sigma-message
    

    API

    parser(config)

    The constructor function creates a new parser. Optionnal parameter options allow to change separator and delimiter. config :

    • delimiter : default is ';'
    • separator : default is '='

    .parse(string)

    Parse a string and return an objet containing key and values.

    .format(obj)

    Returns a string containing parameters properties and values.

    install

    npm i sigma-message

    Downloadsweekly downloads

    2

    version

    0.0.1

    license

    Apache License V2

    repository

    github.com

    last publish

    collaborators

    • avatar