1.4.1 • Published 7 years ago

@oipati/products-sync v1.4.1

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

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
1.4.1

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.2.1

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago