🚢 validates container numbers
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.editorconfig
.gitignore
.npmignore
.prettierrc
.travis.yml
Makefile
changelog.md
license
package.json
readme.md
tsconfig.json
tslint.json
yarn.lock

readme.md

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