Skip to content

UMD / npm packaging #1

Description

@konsumer

I would like to see this library wrapped in UMD code, so it works in CommonJS (node, rhino, etc) and AMD (require.js, curl, etc) with a fallback of window global. This way it can stay name-spaced properly in browser with require.js, and be usable in node/rhino, and in worse-case work the same as it does.

this should do the trick.

I'd also like to add a package.json, and submit it to npm, so it's super-easy to install in node.

I have made a fork, and would be willing to make the change and do a pull-request.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions