Socket
Socket
Sign inDemoInstall

gmaps-signer

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gmaps-signer

Sign requests made to Google Maps for Work API


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

gmaps-signer

gmaps-signer is a small package which allows you to sign requests to Google Maps API for Work Web Services according to the specification.

The module is a single function which accepts a URL (with or without a hostname) and your web-safe Base64 encoded signing key and returns the URL with the &signature=... part appended.

Example

var sign = require("gmaps-signer")
// Can also be called with just /maps/api/geocode/json?latlng=0,0&client=gme-yourclientid
var signed = sign("https://maps.googleapis.com/maps/api/geocode/json?latlng=0,0&client=gme-yourclientid", "Y0ur-Api-S1gn1NG-kEyHERE=")

signed == "https://maps.googleapis.com/maps/api/geocode/json?latlng=0,0&client=gme-yourclientid&signature=gbtkKNR9gWP7AYeMUjKsEV4OQZY=" //true

Keywords

FAQs

Last updated on 24 Jul 2015

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