Menu

Ping, Power & Processors: Announcing our Acquisition by Equinix. Read more on our blog.

Node.js

Packet Node.js API Client Banner

Welcome to Packet Node.js API Client.

For more information about our API endpoints, please visit our API Documentation.

Installation

There are two ways to get started:

  1. Install our Node.js CLI as npm package: npm install packet-nodejs

  2. Clone our public repo in GitHub: git clone [email protected]:packethost/packet-nodejs.git

Usage

Packet = require('packet-nodejs');
var api = new Packet('YOU API TOKEN HERE');
//You can change your Token later on
api.setApiToken('YOUR NEW TOKEN');

Routes & Methods

For more information on available router and methods, please visit Packet Node.js CLI public repo.