Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pluk

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pluk

data.police.uk API wrapper

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Pluk

Bindings for data.police.uk.

Install

npm install pluk

Example

var pluk = require('pluk');

pluk.hood('Westminster, London').info().then(function(data) {
  console.log(data);
}, function(err) {
  // err occurred
});
// Logged:
{
  contact_details:
   { telephone: '020 7601 2452',
     email: 'community@cityoflondon.police.uk' },
  name: 'Community Policing',
  links: [],
  centre: { latitude: '51.5151', longitude: '-0.0934' },
  locations:
   [ { name: 'Snow Hill Police Station',
       longitude: null,
       postcode: 'EC1A 2DP',
       address: '5 Snow Hill\nLondon',
       latitude: null,
       type: 'station',
       description: null } ],
  url_force: 'http://www.cityoflondon.police.uk/community-policing/',
  population: '208596',
  id: 'cp',
  description: '<p>City of London Police Community Policing</p>'
}

Current API

  • hood(ADDR | POST-CODE | [LAT, LNG]) - returns methods:
  • Each method returns a when.js promise
  • info()
  • events()
  • priorities()
  • boundary()
  • people()

See http://data.police.uk/docs/ for additional docs.

TODO:

  • Additional methods!
  • Mocha specs

FAQs

Package last updated on 15 Feb 2014

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