Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

streamcutter

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

streamcutter

short transformer stream to cut a stream's end / beginning / length

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

NPM version NPM downloads Dependencies

NPM info

node-streamcutter

cut a streams start, end and length

Usage

remove the first and last 10 bytes from a stream

const streamCutter = require('streamcutter');
const fs = require('fs');

const noStartNoEnd = new streamCutter({start: 10, end: 10});
<stream>.pipe(noStartNoEnd);
noStartNoEnd.pipe(fs.createWriteStream('./cutFile'));

API

new streamCutter([options[, transformerStreamOptions]])

  • options typeof Object
    • options.end
      • typeof number
      • how many bytes to trim from the end
    • options.start
      • typeof number
      • how many bytes to trim from the start
    • options.length
      • typeof number
      • how many bytes it should be long
    • options.debug
      • typeof boolean
      • enable debug logs
  • transformerStreamOptions

Install

npm install --save streamcutter

License

MIT

Keywords

FAQs

Package last updated on 09 Nov 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc