New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

edgegrid-node

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edgegrid-node

A Node.js client, reference implementation and authentication library for EdgeGrid.

latest
Source
npmnpm
Version
1.1.3
Version published
Weekly downloads
7
75%
Maintainers
1
Weekly downloads
 
Created
Source

edgegrid-node

Summary

A Node.js command line client, reference implementation and authentication library for EdgeGrid.

Installation

npm -g install edgegrid-node

Configuration

To use the command line client, a configuration file named .egnode needs to be present in the user's home directory (i.e. $HOME/.egnode). The configuration file is in ini format. A profile named 'default' must be defined but additional profiles can be defined as well.

Four properties can be defined in a profile, 3 of which are required:

  • clientToken (required)
  • clientSecret (required)
  • accessToken (required)
  • baseUrl

Sample config file:

; configuration file with default profile

[default]
clientToken=akaa-qersdfqwerasdfqwerasdfqwerf
clientSecret=qwerasdfqwerasdfqwerasdfqwerasdfqwerasdfqwer
accessToken=akaa-asdfqwerasdfqwerasdfqwerasdfqwera
baseUrl=akaa-zxcvasdfzxcvasdfzcxvasdf.luna.akamaiapis.net

Usage

GET

$ edgegrid-node -H "Content-Type:application/json" \
                -H "Accept:application/json" \
                -p "/edgegrid-service/path/to/resource"

POST

$ edgegrid-node -H "Content-Type:application/json" \
                -H "Accept:application/json" \
                -m "POST" \
                -d @./dataFile.json \
                -p "/edgegrid-service/path/to/resource"

--help

  Usage: edgegrid-node [options]

  Options:

      -h, --help                      output usage information
      -V, --version                   output the version number
      -f, --config-file [file]        Configuration file
      -P, --config-profile [profile]  Configuration profile [default]
      -m, --method [method]           http method (default: "GET")
      -b, --base-url [url]            Base URL
      -H, --header [header]           Header - format: "foo:bar"
      -d, --data [data]               Post data
      -p, --path [url]                URL path: Example: "/p/a/t/h?query=string"

Keywords

edgegrid

FAQs

Package last updated on 15 Nov 2013

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