# gs1-price-verifier

> GS1 price verifier calculator

Latest version **1.1.0** (published 2023-05-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install gs1-price-verifier
pnpm add gs1-price-verifier
yarn add gs1-price-verifier
bun add gs1-price-verifier
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2023-05-29 |
| First published | 2023-02-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Oliver Hardman |
| Maintainers | oliverhardman |
| Keywords | gs1, barcode, price, verifier, check, digit, code128, ean-13, upc |

## Links

- npm: https://www.npmjs.com/package/gs1-price-verifier
- Repository: https://github.com/oliverphardman/gs1-price-verifier
- Homepage: https://github.com/oliverphardman/gs1-price-verifier#readme
- Issues: https://github.com/oliverphardman/gs1-price-verifier/issues
- npm.io page: https://npm.io/package/gs1-price-verifier

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2023-05-29
- 1.0.3 — 2023-02-27
- 1.0.2 — 2023-02-27
- 1.0.1 — 2023-02-03
- 1.0.0 — 2023-02-03

## README

# gs1-price-verifier

A simple npm module for creating check digits for four-digit or five-digit price fields, otherwise known as 'price verifiers'.

For more information, please see the [official GS1 standard](https://ref.gs1.org/standards/genspecs/).

# Installation
`npm install gs1-price-verifier`

`import gs1PriceVerifier from 'gs1-price-verifier'`

# Usage
`gs1PriceVerifier(priceDigits)`

`priceDigits` should be a four or five digit purely numeric string (e.g. "1234" or "12345") depending on your barcode setup.
Values before the first significant digit should be padded with 0s.

For example, in a 4 digit system, $12.34 would be "1234" and $1.23 would be "0123"

In a 5 digit system, $12.34 would be "01234" and $1.23 would be "00123".

---
_Source: https://npm.io/package/gs1-price-verifier · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
