cosmosdb-header-gen
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

Usage

import { generateCosmosDBHeaders } from "cosmosdb-header-gen"

let headers = generateCosmosDBHeaders("GET", "docs", "dbs/{dbname}/colls/{collectioname}", "{yourMasterKey}");

Example result headers:

{
  "Content-Type": "application/json",
  "Authorization": "type%3Dmaster%26ver%3D1.0%26sig%3Df1Uw5FGQwE4N4pw8sbCkHZCi32zxVLSg%",
  "x-ms-version": "2017-02-22",
  "x-ms-date": "Thu, 05 Jul 2018 09:37:39 GMT",
};

Readme

Keywords

none

Package Sidebar

Install

npm i cosmosdb-header-gen

Weekly Downloads

0

Version

0.1.7

License

ISC

Unpacked Size

2.96 kB

Total Files

5

Last publish

Collaborators

  • yeze322