imonumber

Vessel IMO number validator for Node.js

Usage no npm install needed!

<script type="module">
  import imonumber from 'https://cdn.skypack.dev/imonumber';
</script>

README

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')