is-container
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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)

input

Type: string

The container code to be validated.

License

MIT © Ruan Martinelli

Package Sidebar

Install

npm i is-container

Weekly Downloads

491

Version

2.0.0

License

MIT

Unpacked Size

8.99 kB

Total Files

17

Last publish

Collaborators

  • ruanmartinelli