Skip to content

💧 Naive stream shim for smaller Browserify bundles

License

Notifications You must be signed in to change notification settings

javascript-studio/studio-browser-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Studio Browser Stream

💧 Naive stream shim for smaller Browserify bundles.

Why?

This library exists to make it possible to use Studio Log in browsers by letting Browserify replace the node stream module with this implementation. The default Browserify stream implementation adds 200+KB to the bundle.

Note! This library is intentionally incompatible with the original node stream module. It is only supposed to behave in the context of the Studio Log modules.

Usage

Add this section to your package.json:

{
  "browser": {
    "stream": "@studio/browser-stream"
  }
}

Install

❯ npm i @studio/browser-stream

API

  • Writable
  • PassThrough
  • Transform

Related modules

License

MIT

Made with ❤️ on 🌍

About

💧 Naive stream shim for smaller Browserify bundles

Resources

License

Stars

Watchers

Forks

Packages

No packages published