2.0.0 • Published 6 years ago
is-container v2.0.0
is-container
Validates a container number according to ISO 6346
Install
yarn
$ yarn add is-container
npm
$ npm install --save is-container
Usage
See tests for more examples.
const isContainer = require('is-container')
isContainer('MSKU6011672')
//=> true
API
isContainer(code)
input
Type: string
The container code to be validated.
License
MIT © Ruan Martinelli