Socket
Socket
Sign inDemoInstall

gce-output-stream

Package Overview
Dependencies
73
Maintainers
13
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gce-output-stream

Get a stream of output from a Google Compute Engine instance


Version published
Weekly downloads
3
increased by200%
Maintainers
13
Install size
7.68 MB
Created
Weekly downloads
 

Readme

Source

gce-output-stream Build Status

Get a stream of output from a Google Compute Engine instance

$ npm install --save gce-output-stream
var outputStream = require('gce-output-stream')

outputStream({
  zone: 'us-central1-a',
  name: 'app-http-server'
})
.on('data', function (line) {
  // `line` is a single line of output
})
Authorization

This module uses google-auto-auth to get the required access token. If you don't meet the requirements for automatic authentication, you will need to provide the same configuration object detailed in that readme.

outputStream({
  authConfig: {
    keyFile: 'key.json'
  }
})

API

outputStream = require('gce-output-stream')
stream = outputStream(config)
  • Type: Stream

An output stream with the results of iterative calls to getSerialPortOutput. Each data event emitted is a single line.

config.name
  • Type: String
  • Required

The name of your instance.

config.zone
  • Type: String
  • Required

The name of the zone the instance is running in. (Ex: us-central1-a)

config.authClient

If you want to re-use an auth client from google-auto-auth, pass an instance here.

config.authConfig
  • Type: object
  • Optional

See authConfig.

config.port
  • Type: Number
  • Optional
  • Default: 1
config.projectId
  • Type: String
  • Optional

The projectId your instance is hosted under.

The COM or serial port to retrieve data from. Acceptable values are 1-4.

Keywords

FAQs

Last updated on 20 Oct 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc