is-container
v2.0.0
Published
Validates a container number according to ISO 6346
Downloads
1,230
Maintainers
Readme
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