Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 918 Bytes

readme.md

File metadata and controls

44 lines (26 loc) · 918 Bytes

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