Permalink
Browse files

Update license

  • Loading branch information...
wdavidw committed Dec 13, 2011
1 parent 1246cf5 commit deff58363b0fff9f97ca1f73c7decd0f99ac016a
Showing with 34 additions and 9 deletions.
  1. +3 −1 .gitignore
  2. +11 −7 CHANGELOG.md
  3. +15 −0 LICENSE.md
  4. +5 −1 README.md
View
@@ -1 +1,3 @@
-.DS_Store
+.*
+/node_modules
+!.gitignore
View
@@ -1,14 +1,18 @@
# Changelog: HTTP Status
+## Version 0.1.1 – Dec 13, 2011
+
+- Code officially under the BSD License
+
## Version 0.1.0 – April 17, 2011
- - Added reference links to HTTP specification
- - Fixed naming convention for constants from `PascalCase` to `ALL_CAPS`
- - Converted status codes from string to number
- - Updated samples
- - Updated tests
- - Added this `CHANGELOG`
+- Added reference links to HTTP specification
+- Fixed naming convention for constants from `PascalCase` to `ALL_CAPS`
+- Converted status codes from string to number
+- Updated samples
+- Updated tests
+- Added this `CHANGELOG`
## Version 0.0.1 – March 25, 2011
- - Initial release.
+- Initial release.
View
@@ -0,0 +1,15 @@
+Software License Agreement (BSD License)
+========================================
+Copyright (c) 2008-2010, SARL Adaltas.
+
+All rights reserved.
+
+Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+- Neither the name of SARL Adaltas nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission of the SARL Adaltas.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
@@ -1,21 +1,24 @@
-# HTTP Status
+# HTTP Status code for Node
Utility to interact with HTTP status code.
## Usage
### API sample
+```javascript
var HTTPStatus = require('http-status');
// Print "Internal Server Error"
console.log(HTTPStatus[500]);
// Print 500
console.log(HTTPStatus.INTERNAL_SERVER_ERROR);
+```
### Express sample
+```javascript
var express = require('express'),
redis = require('redis'),
HTTPStatus = require('http-status');
@@ -33,6 +36,7 @@ Utility to interact with HTTP status code.
});
app.listen(3000);
+```
Contributors
------------

0 comments on commit deff583

Please sign in to comment.