0.2.6 • Published 1 year ago

@tryghost/signed-request v0.2.6

Weekly downloads
302
License
MIT
Repository
github
Last release
1 year ago

Signed Request

Install

npm install @tryghost/signed-request --save

or

yarn add @tryghost/signed-request

Usage

Provides a signed GET request

Needs the following minimum arguments: Arg 1: hmac_key used to sign the request Arg 2: server address or ip to send request to (protocol is stripped) Arg 3: additional path of request or empty string e.g: /packages Optional Arg 4: options object with properties:

  • source - where your request originated from
  • protocol - to overwrite default request protocol of http://

Example usage:

const signedRequest = require('@tryghost/signed-request');
signedRequest.exec(hmac, server, path, options)

Develop

This is a mono repository, managed with lerna.

Follow the instructions for the top-level repo. 1. git clone this repo & cd into it as usual 2. Run yarn to install top-level dependencies.

Run

  • yarn dev

Test

  • yarn lint run just eslint
  • yarn test run lint and tests

Copyright & License

Copyright (c) 2013-2022 Ghost Foundation - Released under the MIT license.

0.2.6

1 year ago

0.2.5

2 years ago

0.2.4

3 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago