Skip to content

Commit

Permalink
readme: fix getRealFormat example
Browse files Browse the repository at this point in the history
  • Loading branch information
SEAPUNK authored Apr 1, 2021
1 parent 4348868 commit 82a7ce4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ getFormat('123') // Error thrown
Gets the real format of the given barcode, by minifying it first.

```js
import { getFormat } from 'gtin'

getFormat('1234123412344') // 'GTIN-13'
getFormat('01234123412344') // 'GTIN-13'
getFormat('123412381') // Error thrown
getFormat('abc') // Error thrown
getFormat(123) // Error thrown
getFormat('123') // Error thrown
import { getRealFormat } from 'gtin'

getRealFormat('1234123412344') // 'GTIN-13'
getRealFormat('01234123412344') // 'GTIN-13'
getRealFormat('123412381') // Error thrown
getRealFormat('abc') // Error thrown
getRealFormat(123) // Error thrown
getRealFormat('123') // Error thrown
```

<a id='gtin-upcE-compress'></a>
Expand Down

0 comments on commit 82a7ce4

Please sign in to comment.