vinyl-buffer

WebJar for vinyl-buffer

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

vinyl-buffer
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

vinyl-buffer
WebJar for vinyl-buffer
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/hughsk/vinyl-buffer

Download vinyl-buffer

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/vinyl-buffer/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>vinyl-buffer</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/vinyl-buffer/
implementation 'org.webjars.npm:vinyl-buffer:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/vinyl-buffer/
implementation ("org.webjars.npm:vinyl-buffer:1.0.0")
'org.webjars.npm:vinyl-buffer:jar:1.0.0'
<dependency org="org.webjars.npm" name="vinyl-buffer" rev="1.0.0">
  <artifact name="vinyl-buffer" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='vinyl-buffer', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "vinyl-buffer" % "1.0.0"
[org.webjars.npm/vinyl-buffer "1.0.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : bl jar [0.9.1,0.10)
org.webjars.npm : through2 jar [0.6.1,0.7)

Project Modules

There are no modules declared in this project.

vinyl-buffer Flattr this!experimental

Convert streaming vinyl files to use buffers.

An alternative to gulp-streamify that you can pipe to, instead of being required to wrap your streams.

var browserify = require('browserify')
var source = require('vinyl-source-stream')
var buffer = require('vinyl-buffer')
var uglify = require('gulp-uglify')
var size = require('gulp-size')
var gulp = require('gulp')

gulp.task('build', function() {
  var bundler = browserify('./index.js')

  return bundler.bundle()
    .pipe(source('index.js'))
    .pipe(buffer())
    .pipe(uglify())
    .pipe(size())
    .pipe(gulp.dest('dist/'))
})

Usage

vinyl-buffer

vinylBuffer()

Creates a transform stream that takes vinyl files as input, and outputs modified vinyl files as output. If file.isStream(), file.contents will be converted to a Buffer before being emitted again – otherwise, the file will be emitted immediately.

License

MIT. See LICENSE.md for details.

Versions

Version
1.0.0