Socket
Socket
Sign inDemoInstall

nhtsa-api

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nhtsa-api

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


Version published
Weekly downloads
10
increased by400%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 03 Dec 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc