![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
docker-stream-cleanser
Advanced tools
Readme
Docker Stream Cleanser is a drop-in module to clean the headers from Docker Logs
Seeing weird characters at the beginning of each line coming from your Docker container's log stream? This will clear that right up! Docker places a header on each message to help you determine which stream (stdout or stderr) a message should belong to. Thanks Docker, but I just want to read the output! Since there is no setting to turn off this functionality, I wrote this.
More info on Docker's Container Logs
For clearing from stored logs:
var streamCleanser = require('docker-stream-cleanser');
function(theData) {
var cleansed = streamCleanser(theData, 'hex');
}
For clearing between streams:
var streamCleanser = require('docker-stream-cleanser');
function(theStream) {
var cleansed = streamCleanser.cleanStreams(theStream, process.stdout, 'hex', true);
}
// cleanStreams(inputStream, outputStream, encoding, addCarraigeReturn)
// addCarraigeReturn is a flag to replace all \n's in the stream with \r\n
For more info, look at the header comments and the tests
0.0.16
npm install docker-stream-cleanser --save
MIT
FAQs
This module cleans the docker headers from the log stream from a container. I never found them very useful, so I wrote this to clean them up either in bulk, or in between a piping. It's not as simple as just removing the first 8 bytes on every message
The npm package docker-stream-cleanser receives a total of 2 weekly downloads. As such, docker-stream-cleanser popularity was classified as not popular.
We found that docker-stream-cleanser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.