Skip to content

Commit

Permalink
Added exports to module to support for require with browserify.
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyjb committed Jun 9, 2016
1 parent 9669f8d commit e323e22
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 8 deletions.
Binary file added HTMLString-1.0.3.tgz
Binary file not shown.
24 changes: 21 additions & 3 deletions build/html-string.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/html-string.min.js

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion external/fsm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "HTMLString",
"description": "An HTML parser written in JavaScript that's probably not what you're looking for.",
"version": "1.0.2",
"version": "1.0.3",
"keywords": [
"html",
"parser"
Expand Down
13 changes: 12 additions & 1 deletion src/namespace.coffee
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
window.HTMLString = {}
HTMLString = {}


# Export the namespace

# Browser (via window)
if typeof window != 'undefined'
window.HTMLString = HTMLString

# Node/Browserify
if typeof module != 'undefined' and module.exports
exports = module.exports = HTMLString

0 comments on commit e323e22

Please sign in to comment.