openfoodfacts / openfoodfacts-nodejs

Official Node package for Open Food Facts

Home Page:https://openfoodfacts.github.io/openfoodfacts-nodejs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

List of products by barcode beginning

kozlown opened this issue · comments

commented

Create method getProductsByBarcodeBeginning(barcodeBeginning)
Where barcodeBeginning is a String. (It must automatically add xxxx[...])

example:

await OFF.getProductsByBarcodeBeginning('3596710')
// should fetch https://world.openfoodfacts.org/code/3596710xxxxxx.json

It must work for the following endpoint:

I would like to work on this issue.