Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Browser support #31

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

ikreymer
Copy link

This PR allows node-warc to be bundled with webpack for use in the browser.
Operations requiring fs are moved to separate module and a stream is passed in via getStream
fs and untildify are excluded from bundling for the browser.

- avoid including fs and untildify, just pass in raw streams
- uses webpack to bundle to dist/nodewarc.js
- expose stream and zlib for further testing with WARCParser
- add index.html for testing
issues: still getting 'Uncaught Error: invalid distance too far back' from zlib, unrelated to warc parsing (which works well!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant