Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks for finally writing a lib for something I keep rewriting over and over again in every project! :)
I've added support for CommonJS, used by node.js and its package manager npm. That way servers simulating browsers (for tests or other reasons) can install and run Cookies.js. Additionally, tools like browserify can be used in order to install Cookies.js in a browser in a modular way.
Since the name "cookies" is already taken for some server-side cookie-tool, I've suggested the name "client-cookies" for the module itself, but you can change it in package.json if you prefer something else.
If you're not familiar with npm already, you can publish your package by simply running "npm publish" from the Cookies-directory (after installing node.js).
Cheers!