Socket
Book a DemoInstallSign in
Socket

fd-read-stream

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fd-read-stream

Readable stream that reads from a file descriptor. Supports tailing and retries.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

fd-read-stream

Readable stream that reads from a file descriptor. Supports tailing and retries.

npm install fd-read-stream

Usage

var fs = require('fs')
var createReadStream = require('fd-read-stream')

var rs = createReadStream(fs.openSync('some-file', 'r'))

rs.pipe(process.stdout)

API

var rs = createReadStream(fd, [options])

Create a new readable stream. Options include:

{
  tail: false // keep reading the fd forever (will pool it)
  retry: 0 // wait this many ms and retry a read once if it fails
}

License

MIT

FAQs

Package last updated on 30 Mar 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