is-container
Validates a container number according to ISO 6346
Last updated 2 years ago by ruanmartinelli .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install is-container 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.0                                ...           latest (2 years ago)
  • 2.0.0-0                                ...           next (2 years ago)

7 Versions

  • 2.0.0                                ...           2 years ago
  • 2.0.0-0                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 2
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (12)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |