Skip to content

Tallysticks/imonumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imonumber

Vessel IMO number validator

Usage

const { validate } = require('imonumber')

validate('IMO 9176187') // true
validate('asdfasd') // false

Browser usage

An ES5 supported build is available

var imonumber = require('imonumber/es5')