Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
gce-output-stream
Advanced tools
Readme
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
})
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'
}
})
Stream
An output stream with the results of iterative calls to getSerialPortOutput
. Each data event emitted is a single line.
String
The name of your instance.
String
The name of the zone the instance is running in. (Ex: us-central1-a
)
GoogleAutoAuth
If you want to re-use an auth client from google-auto-auth, pass an instance here.
object
See authConfig
.
Number
1
String
The projectId your instance is hosted under.
The COM or serial port to retrieve data from. Acceptable values are 1
-4
.
FAQs
Get a stream of output from a Google Compute Engine instance
The npm package gce-output-stream receives a total of 1 weekly downloads. As such, gce-output-stream popularity was classified as not popular.
We found that gce-output-stream demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 open source maintainers collaborating on the project.
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.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.