Skip to content
On this page

Utility Functions


This package exports a number of helper functions for working with VINs and the VPIC API.

  • isValidVin - function for offline VIN validation
  • useNHTSA - composable function returning useful helper functions

Exported Utility Functions

The following demonstrates how to import all of the VPIC utility functions from this package.

💡 TIP

Although they are all imported at once in this example, you should import only the functions you are using.

javascript
import {
  isValidVin, // function for offline VIN validation
  useNHTSA, // composable function returning helper functions for the VPIC API
} from '@shaggytools/nhtsa-api-wrapper'

Released under the MIT License.