![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.
@coffeekraken/s-stdio
Advanced tools
Clean and extensible Stdio system that make use of the @coffeekraken/s-event-emitter event system to listen to "log" or "ask" events and display them nicely with our built-in terminal implementation or anywhere else if you extends it.
Readme
{{#> layout-readme }}
This package allows you to display processes/webpages logs with ease. Here's some of the features available:
SBasicStdio
: Nice IO interface for terminaltype
Here's how to use our implementation:
import __SStdio from '@coffeekraken/s-stdio';
import spawn from '@coffeekraken/sugar/node/process/spawn';
const proc = spawn('ls -la');
__SStdio.new(__SStdio.UI_BASIC, proc);
The SStdio
class will listen for some events log
and ask
. Once one of these events is triggered, the IO will either display a log, or the asked question using different implementations depending on the SStdio
instanciated type.
The event are listened using the SEventEmitter class.
Here's an example of emitting a log event that will be handled by the SStdio
instance:
import __SPromise from '@coffeekraken/s-promise';
import __SLog from '@coffeekraken/s-log';
export default function myProcess() {
return new __SPromise(({ resolve, reject, emit }) => {
// do something...
emit('log', {
type: __SLog.TYPE_INFO,
value: 'Hello world from my cool process',
});
// do something...
resolve();
});
}
Note that the
SPromise
class extends theSEventEmitter
one.
{{> interface namespace='@coffeekraken.s-stdio.shared.interface.SStdioSettingsInterface' }}
For more information about the API of this class, please check our API documentation
{{/ layout-readme }}
FAQs
Clean and extensible Stdio system that make use of the @coffeekraken/s-event-emitter event system to listen to "log" or "ask" events and display them nicely with our built-in terminal implementation or anywhere else if you extends it.
The npm package @coffeekraken/s-stdio receives a total of 198 weekly downloads. As such, @coffeekraken/s-stdio popularity was classified as not popular.
We found that @coffeekraken/s-stdio demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.