No changes yet.
- Fixed README to have correct examples (again).
- Fixed README to have correct examples.
-
Minimum supported Node.js version is now
10
.Note that this library may still work with older versions, but no effort will be made to fix this library to support those versions.
-
Support for browsers that don't support
String.padStart
(e.g. all IE and opera mini versions) has been removed.Use Babel if you need to support older browsers.
-
API rename
-
gtin.validate
is nowgtin.isValid
-
gtin.upce
is nowgtin.upcE
Alternatively, you can also import the UPC-E functions directly:
import upcE from 'gtin/lib/upc-e'
-
-
Typescript support
.d.ts
declaration files are now included in the published package.
Initial release.