Skip to content

9w/qs-amazon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');

About

Customed qs module for amazon query stringify

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published