New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

spotcrime-city

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spotcrime-city

SpotCrime wrapped in a Hapi server to hit endpoints with cities instead of lat/lngs

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

#SpotCrime-city

Build Status npm

####Currently the spotcrime node module will allow you to fetch JSON of crimes in an area with latitude and longitude. This demo wraps that functionality in a Hapi server and retrieve the JSON with endpoints for city and state.

##To see how it works

npm i spotcrime-city
npm start
Go to localhost:8050/{city}/{State}
e.g localhost:8050/Baltimore/MD

##You can also run this in a Docker container

docker build -t spotcrime-city .
docker run -p 8050:8050 -e PORT=8050 spotcrime-city

##To use

const scc = require('spotcrime-city');

const results = scc.getCrimesCity('Baltimore, MD');

console.log('results', results);

####After you start the Hapi server, you can hit endpoints of city and state to see the local crime in your area.

#License

###MIT Troy M. Connor

Keywords

FAQs

Package last updated on 25 Jun 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc