Get the metadata from a Google Cloud Platform environment
$ npm install --save gcp-metadata
var gcpMetadata = require('gcp-metadata')
gcpMetadata.instance(function(err, response, metadata) {
// All metadata properties
})
gcpMetadata.instance('hostname', function(err, response, metadata) {
// All metadata properties
})
gcpMetadata.instance({
property: 'tags',
qs: { alt: 'text' }
}, function(err, response, metadata) {
// Tags as newline-delimited list
})