Socket
Socket
Sign inDemoInstall

qs-google-signature

Package Overview
Dependencies
4
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    qs-google-signature

QS wrapper which Autodetects signature parameter and replace it with a signature according to https://developers.google.com/maps/documentation/business/webservices/auth#digital_signatures


Version published
Maintainers
1
Install size
119 kB
Created

Readme

Source

Introduction

This is a wrapper around qs package, made in order to create a querystring conforming to Google Digital Signature , by simply adding your signature key as the signature parameter, see Usage below.

It's especially intended as an almost drop'in replacement for qs package or querystring node API in packages such as :

Install

$> npm install qs-google-signature

Usage

var qs = require('qs-google-signature');

var query = {
  address: "New+York",
  client: "clientID",
  signature: "vNIXE0xscrmjlyV-12Nj_BvUPaw=" //this is the signature key provided by Google
}

var queryString = qs.stringify(query, url);
//=> address=New%2BYork&client=clientID&signature=WrTAou0zgXHjKwUPdsITPZeMXew=

Debug

To display logs, thanks to debug use the environment variable "DEBUG" to set that you want to display "qs:signature" logs, e.g. :

$> DEBUG="qs:signature" node myProgram.js

It can also be listed among other things to debug:

$> DEBUG="http,qs:signature,worker" node myProgram.js

License

MIT

Keywords

FAQs

Last updated on 18 Nov 2014

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