Skip to content

Can't use a file stream #17

@guoh27

Description

@guoh27
const readStream = fs.createReadStream(inFile)
const writeStream = fs.createWriteStream(file)
const bandwidthThrottleGroup = createBandwidthThrottleGroup({
	bytesPerSecond: 500000
})
const throttleStream = bandwidthThrottleGroup.createBandwidthThrottle(500000)
read.pipe(throttleStream).pipe(writeStream)

will always RangeError: offset is out of bounds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions