Skip to content

An NPM package to query an automobile's NHTSA (National Highway and Transportation Safety Administration - U.S.) Safety Rating

License

Notifications You must be signed in to change notification settings

badmark/nhtsa-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NHTSA Safety Data API

An NPM package to retrieve safety information from NHTSA for automobiles

Basic usage

var NHTSA = require("nhtsa-api");

var model = new NHTSA("1999","Ford","Mustang");

/**
* When the JSON body is fully received the 
* the "end" event is triggered and the full body
* is given to the handler or callback
**/
model.on("end", console.dir);

/**
* If a parsing, network or HTTP error occurs an
* error object is passed in to the handler or callback
**/
model.on("error", console.error);

About

An NPM package to query an automobile's NHTSA (National Highway and Transportation Safety Administration - U.S.) Safety Rating

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published