qs-amazon

1.0.1 • Public • Published

qs-amazon

Customed qs module for amazon query stringify

Check amazon querystring at Docs > Examples > Example query request > Show example code (click)

The qs module was proted from https://github.com/ljharb/qs

Usage

const qs = require('qs-amazon');
const assert = require('assert');
 
const str = qs.stringify(
    {
        ShipmentRequestDetails: {
            ItemList: {
                Item: [
                    {
                        OrderItemId: 26969160673646,
                        Quantity: 1,
                    },
                ],
            },
        },
    },
    { arrayFormat: 'amazon', encode: false, allowDots: true }
);
assert.equal(str, 'ShipmentRequestDetails.ItemList.Item.1.OrderItemId=26969160673646&ShipmentRequestDetails.ItemList.Item.1.Quantity=1');

Dependents (0)

Package Sidebar

Install

npm i qs-amazon

Weekly Downloads

0

Version

1.0.1

License

BSD-3-Clause

Unpacked Size

98 kB

Total Files

14

Last publish

Collaborators

  • 9w