google-compute-metadata

1.2.1 • Public • Published

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);
});

Readme

Keywords

Package Sidebar

Install

npm i google-compute-metadata

Weekly Downloads

18

Version

1.2.1

License

MIT

Last publish

Collaborators

  • jaclar