New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

bare-stdio

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-stdio

Standard input/output streams for Bare

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

bare-stdio

Standard input/output streams for Bare.

npm i bare-stdio

Usage

const stdio = require('bare-stdio')

// Write to stdout
stdio.out.write('Hello, World!\n')

// Write to stderr
stdio.err.write('An error occurred\n')

// Read from stdin
stdio.in.on('data', (data) => {
  console.log('Received:', data.toString())
})

API

stdio.in

A readable stream for standard input (fd 0). Returns a bare-tty ReadStream if stdin is a terminal, a bare-pipe Pipe if it's a pipe, otherwise a bare-fs ReadStream.

stdio.out

A writable stream for standard output (fd 1). Returns a bare-tty WriteStream if stdout is a terminal, a bare-pipe Pipe if it's a pipe, otherwise a bare-fs WriteStream.

stdio.err

A writable stream for standard error (fd 2). Returns a bare-tty WriteStream if stderr is a terminal, a bare-pipe Pipe if it's a pipe, otherwise a bare-fs WriteStream.

License

Apache-2.0

FAQs

Package last updated on 02 Apr 2026

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