1.2.1 • Published 8 years ago

google-compute-metadata v1.2.1

Weekly downloads
17
License
MIT
Repository
github
Last release
8 years ago

Google Compute Engine Metadata

Node module for getting Google Compute Engine instance and project metadata.

Installation

npm install google-compute-metadata

Usage

var metadata = require("google-compute-metadata");

metadata.instance(function (err, data) {
  console.log("Instance Id: " +  data.id);
});

metadata.project(function (err, data) {
  console.log("Project Id: " +  data.projectId);
});