brianloveswords / filesystem-browserify

4 stars 0 forks source link

Examples #2

Open fergiemcdowall opened 9 years ago

fergiemcdowall commented 9 years ago

Hi! Could you put a couple of examples in the docs? How do you invoke filesystem-browserify? How do you use filesystem-browserify to convert an fs.createReadStream?

kumavis commented 9 years ago

I agree, a simple example should be added to the readme.

for now:

build with browserify, swap out fs with filesystem-browserify via the "browser" field your package.json https://github.com/substack/node-browserify#browser-field example filesystem-browserify usage: https://github.com/brianloveswords/filesystem-browserify/blob/master/example.js

pro-tip for browserify, use beefy for development

beefy index.js --live --open