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

gmaps-signature

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gmaps-signature

Signs Google Maps requests. Works with both general and Google Maps for Work.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Google Maps Signature

Travis CI NPM Codecov VersionEye

Signs Google Maps requests. Works with both general and Google Maps for Work.

Installation

With npm...

npm install --save gmaps-signature

Usage

// Load the module
var GS = require('gmaps-signature');

// Add your Google Maps key
GS.GOOGLE_API_KEY = 'MY KEY';
// Or for Google Maps API for Work
GS.GMAPS_CLIENT_ID = 'MY CLIENT ID';
GS.GMAPS_PRIVATE_KEY = 'MY PRIVATE KEY';

// and then you can start signing urls...
var url = GS.sign('https://maps.googleapis.com/maps/api/geocode/json?address=New+York');

Env variables

You can also set the required keys using env variables. Like so:

GOOGLE_API_KEY=THIS_IS_MY_KEY node .
GMAPS_CLIENT_ID=THIS_IS_MY_ID GMAPS_PRIVATE_KEY=THIS_IS_MY_PK node .

Keywords

FAQs

Package last updated on 01 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