Socket
Socket
Sign inDemoInstall

match-products

Package Overview
Dependencies
103
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    match-products

A command-line tool to match product barcodes to ASIN using Amazon Marketplace Web Services API


Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Install size
81.4 MB
Created
Weekly downloads
 

Readme

Source

match-products

npm version JavaScript Style Guide

Installation

install globally using npm so that it may be run from the command line.

npm install -g match-products

Configuration

create mwsconfig.json in your home directory

{
  "merchantId": "<Your Merchant Id>",
  "accessKeyId": "<Your AWS Access Key ID>",
  "secretAccessKey": "<Your AWS Secret Key>",
  "endpoint": "<Your Marketplace Endpoint>",
  "marketplaceId": "<Your Default Marketplace Id>",
  "dataService": {
    "default": "localFileSystem",
    "services": {
      "localFileSystem": {
        "path": "mws-requests",
        "format": "json"
      },
      "s3": {
        "bucketName": "<myBucket>",
        "bucketRegion": "<myRegion>",
        "objectPrefix": "mws-requests",
        "objectStorageClass": "STANDARD | REDUCED_REDUNDANCY | STANDARD_IA"
      }
    }
  }
}

create mpconfig.json in the working directory

{
  "dataService": {
    "default": "localFileSystem",
    "services": [
      {
        "name": "localFileSystem",
        "module": "data-service-local-fs",
        "eventSourceFilePrefix": "matchresults/matchresults",
        "eventSourceFileExt": "log",
        "snapshotFilePrefix": "matchresults.snapshot",
        "snapshotFileExt": "txt"
      }
    ]
  }
}

Usage

  Usage: matchproducts [options] [file]

  A command-line tool to match product barcodes to ASIN using Amazon Marketplace Web Services API

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
    -v, --verbose  additional output
    -c, --check    validate barcode check digits and exit
    -d, --dataservice-config <path>  set dataservice config path. defaults to mpconfig.json
    -m, --mws-credentials <path>     set MWS credentials path. defaults to /home/user/mwsconfig.json

FAQs

Last updated on 05 Apr 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc