Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gce-output-stream

Package Overview
Dependencies
Maintainers
13
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

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

  • 0.2.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by600%
Maintainers
13
Weekly downloads
 
Created
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

Package last updated on 20 Oct 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc