1.0.1 • Published 3 years ago

@voxasoftworks/vin v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@voxasoftworks/vin

@voxasoftworks/vin is a package for validating vehicle identification numbers (VINs) written in TypeScript.

This package checks for the right length, the right characters and a correct check digit.

Usage

import { validate } from '@voxasoftworks/vin'

console.log(validate('11111111111111111'));
// => true

console.log(validate('I\'m not valid!'));
// => false

console.log(validate(null));
// => false

console.log(validate(undefined));
// => false