Socket
Socket
Sign inDemoInstall

vinyl-source-stream

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vinyl-source-stream

Use conventional text streams at the start of your gulp or vinyl pipelines


Version published
Weekly downloads
117K
decreased by-25.72%
Maintainers
2
Weekly downloads
 
Created

What is vinyl-source-stream?

vinyl-source-stream is a Node.js package that converts a readable stream into a vinyl file object that can be used with gulp and other vinyl-based build systems. It is particularly useful for integrating browserify with gulp.

What are vinyl-source-stream's main functionalities?

Convert Readable Stream to Vinyl File

This feature allows you to convert a readable stream (such as the output of browserify) into a vinyl file object. The code sample demonstrates how to use vinyl-source-stream to convert the browserify bundle stream into a vinyl file named 'bundle.js' and then pipe it to a gulp destination.

const browserify = require('browserify');
const source = require('vinyl-source-stream');

browserify('./src/index.js')
  .bundle()
  .pipe(source('bundle.js'))
  .pipe(gulp.dest('./dist'));

Other packages similar to vinyl-source-stream

Keywords

FAQs

Package last updated on 23 Dec 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