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

Break out into separate files, bundle with browserify, fix #11 #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scommisso
Copy link

I was running into callStackOverflow exceptions with small-ish JSON (between 300kb and 2mb) files when running in Node 0.10. This seems to have fixed the problem. (Also documented in #11)

Also updated the package.json so that npm test runs the unit tests.

A pre-publish step runs browserify on the source to create the browser-friendly version.

Also added an optional options object. Currently the only option is:
limit: overrides DEFAULT_COUNTER_LIMIT (defaults to 200)

This can be expanded to support other options supported by JSON.stringify() (spacing, etc.)

@scommisso scommisso force-pushed the master branch 2 times, most recently from e291049 to 5208f0f Compare September 17, 2015 00:29
@scommisso scommisso changed the title Break out into separate files, bundle with browserify Break out into separate files, bundle with browserify, fix #11 Sep 25, 2015
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