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

2.0.1 • Public • Published

vinidator

Validate a vehicle identification number(VIN)

Install

npm i vinidator

Only breaking change in version 2.0 was the switch to ESM

API

import { validate, validateAndThrowOnInvalid } from 'vinidator'

validate('1HTMMAANX4H670946') // { isValid: true, code: 'SUCCESS', message: 'VIN is valid' }

validateAndThrowOnInvalid('1m2k195c51m017395') // throws

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.1
    8
  • 2.0.0
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i vinidator

Weekly Downloads

8

Version

2.0.1

License

WTFPL

Unpacked Size

8.16 kB

Total Files

8

Last publish

Collaborators

  • daytonlowell