Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GS1 Barcode & Digital Link Decoder (Sunrise 2027) — TypeScript / JavaScript Client

npm version Run in Postman License: MIT RapidAPI Listing

Official zero-dependency, ultra-lightweight Node.js & browser client for GS1 Barcode & Digital Link Decoder (Sunrise 2027).

Decode GS1 DataMatrix, GS1-128, FNC1 Barcodes and GS1 Digital Link URIs into structured JSON in sub-5ms.

🔑 Get your Dedicated API Key: Subscribe to GS1 Barcode & Digital Link Decoder (Sunrise 2027) on RapidAPI


🚀 Installation

npm install @noor-mkdad/gs1-decoder-client
# or
pnpm add @noor-mkdad/gs1-decoder-client
# or
yarn add @noor-mkdad/gs1-decoder-client

⚡ Quickstart

import { Gs1DecoderClient } from '@noor-mkdad/gs1-decoder-client';

// Pass your RapidAPI key for authenticated edge access
const client = new Gs1DecoderClient({
  apiKey: process.env.RAPIDAPI_KEY // Get key from https://rapidapi.com/noor-mkdad-apis-noor-mkdad-apis-default/api/gs1-barcode-digital-link-decoder-sunrise-2027
});

async function run() {
  const result = await client.validate({
    // Enter validation payload
  });

  if (result.success) {
    console.log('Result:', result.data);
  } else {
    console.error('Error:', result.error);
  }
}

run();

📚 API Reference

new Gs1DecoderClient(config)

  • config.apiKey (optional): RapidAPI Key (x-rapidapi-key).
  • config.baseUrl (optional): Direct edge worker override URL.

client.validate(payload)

Dispatches standard validation / parse request with sub-5ms latency.

client.getHealth()

Checks edge isolate health and responsiveness.


🔗 Links

📄 License

MIT © Noor Mkdad