[go: up one dir, main page]

Skip to content

ruanmartinelli/is-container

Repository files navigation

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