Skip to content

Support modules and npm #54

@peacechen

Description

@peacechen

It would be great if this library were wrapped in a module. Examples in numerous JS libraries show how to support global, CommonJS and AMD in the same file. This is a good read:
http://ifandelse.com/its-not-hard-making-your-library-support-amd-and-commonjs/

Also would be nice to have a package.json to support npm. Don't have to publish on npm registry anymore as npm supports referencing a git repo. I would be happy to provide a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions