is-container

Validates a container number according to ISO 6346


Keywords
container, number, valid, check, iso6346, iso, 6346, cargo, bic, javascript, nodejs, validation
License
MIT
Install
npm install is-container@2.0.0

Documentation

is-container

Build Status NPM downloads NPM version Greenkeeper badge

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)

code

Type: string

The container code to be validated.

License

MIT © Ruan Martinelli