nhtsa-api

0.0.4 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    1
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i nhtsa-api

Weekly Downloads

1

Version

0.0.4

License

MIT

Last publish

Collaborators

  • badmark