@oipati/products-sync
This package retrieve updated information about products given an URL
Last updated 2 years ago by marcoskubas .
ISC · Bugs · Original npm · Tarball · package.json
$ cnpm install @oipati/products-sync 
SYNC missed versions from official npm registry.

Product Sync

This package retrieve updated information about products given an URL

Supported ecommerces:

  • A Brand Br
  • Água Doce
  • Amaro
  • Animale
  • BoBo
  • Cantão
  • Cia Marítima
  • Farm Rio (Pendente)
  • Flaminga
  • Fyi Store
  • Le Lis Blanc
  • Lezalez
  • Lojas Renner
  • Luiza Barcelos (Pendente)
  • Morena Rosa
  • Oh Boy
  • Rosa Chá
  • Sacada
  • Shop2Gether
  • Style Market
  • Zinzane

Usage

const productsync = require('@oipati/products-sync');

const product = await productsync({
  ecommerce: 'shop2gether',
  url: 'https://ecommerce.url',
});

Are two possible outputs, the product doesn't exists anymore or the updated data about the product.

Product doesn't exist

{
  "exists": false
}

Product updated

{
  "exists": Boolean,
  "hasStock": Boolean,
  "oldPrice": Number,
  "price": Number,
  "description": String,
}

DEBUG

export the DEBUG_SYNCER env var

export DEBUG_SYNCER=true
node index.js

Current Tags

  • 1.4.1                                ...           latest (2 years ago)

11 Versions

  • 1.4.1                                ...           2 years ago
  • 1.3.2                                ...           2 years ago
  • 1.3.1                                ...           2 years ago
  • 1.2.1                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (2)
Downloads
Today 1
This Week 2
This Month 2
Last Day 0
Last Week 1
Last Month 6
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |