1.1.2 • Published 3 years ago

nvp-json v1.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

nvp-json

npm version Build Status npm downloads Codacy Coverage

dependencies Build Status GitKraken

A bi-directional NVP-JSON parser, for use with PayPal's NVP APIs.

Tested with Node >= 6 LTS.

Installation

npm install nvp-json

or

yarn add nvp-json

Usage

const nvpjson = require('nvp-json');
let nvpString = 'KEY=VALUE&ESCAPED[5]=& [1]=';

let json = nvpjson.toJSON(nvpString);

/*
 * {KEY: 'VALUE', ESCAPED: '& [1]='}
 */

let nvp = nvpjson.toNVP({
    KEY: 'VALUE',
    ESCAPED: '& [1]='
});

/*
 * KEY=VALUE&ESCAPED[5]=& [1]=
 */

License

MIT

1.1.2

3 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago