intreq-stream
A more direct streaming interface for intreq
Last updated 6 years ago by hughsk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install intreq-stream 
SYNC missed versions from official npm registry.

intreq-stream

A more direct streaming interface for intreq, which removes any file paths from your bundles.

Generally it's nicer using it directly, but the browser-unpack module API would otherwise require you breaking your pipeline. This lets you pipe your JS in and get JS out the other side :)

Usage

NPM

intreqStream()

Creates a transform stream which accepts a browserify bundle as input, and outputs the same browserify bundle with its paths removed.

// Squish a browserify bundle as much
// as it can be squished:
var intreq     = require('intreq-stream')
var browserify = require('browserify')
var uglifyify  = require('uglifyify')

var src = __dirname + '/index.js'

browserify({
  fullPaths: false,
  debug: false,
  entries: [src]
}).transform(uglifyify, { sourcemap: false })
  .bundle()
  .pipe(intreq())
  .pipe(uglifyify(src, { sourcemap: false }))
  .pipe(fs.createWriteStream(__dirname + '/bundle.js'))

License

MIT. See LICENSE.md for details.

Current Tags

  • 1.0.0                                ...           latest (6 years ago)

1 Versions

  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 3
Dependencies (5)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2017 © taobao.org |