zauni / is-container

:ship: validates container numbers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is-container

Build Status NPM downloads NPM version

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

About

:ship: validates container numbers

License:MIT License


Languages

Language:TypeScript 86.9%Language:Makefile 13.1%