UNPKG

1.16 kBMarkdownView Raw
1# contributing to `cors`
2
3CORS is a node.js package for providing a [connect](http://www.senchalabs.org/connect/)/[express](http://expressjs.com/) middleware that can be used to enable [CORS](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing) with various options. Learn more about the project in [the README](README.md).
4
5[![build status](https://secure.travis-ci.org/TroyGoode/node-cors.png)](http://travis-ci.org/TroyGoode/node-cors)
6
7## The CORS Spec
8
9[http://www.w3.org/TR/cors/](http://www.w3.org/TR/cors/)
10
11## Pull Requests Welcome
12
13* Include `'use strict';` in every javascript file.
14* 2 space indentation.
15* Please run the testing steps below before submitting.
16
17## Testing
18
19```bash
20$ npm install
21$ npm test
22$ npm run lint
23```
24
25## Interactive Testing Harness
26
27[http://node-cors-client.herokuapp.com](http://node-cors-client.herokuapp.com)
28
29Related git repositories:
30
31* [https://github.com/TroyGoode/node-cors-server](https://github.com/TroyGoode/node-cors-server)
32* [https://github.com/TroyGoode/node-cors-client](https://github.com/TroyGoode/node-cors-client)
33
34## License
35
36[MIT License](http://www.opensource.org/licenses/mit-license.php)