slightlyoff/Promises — pull request #67 by bfrohs (2013-07-03 18:54:59+00:00)
Title: Add package.json for npm

For #50. You may need to alter the code a bit (e.g. add `module.exports = Promise;`), but this will at least get you started.

Most of the `package.json` file is self-explanatory, but the magic happens by using `main` and setting it to the minified polyfill file. This way, every time the package is `require`d, it will require that file specifically, without having to change the structure of the repo at all (and making it easy to change the structure in the future without breaking anything for users).