Permalink
Browse files

refactor package

  • Loading branch information...
1 parent 4f3ab6f commit 3214d60a3377b697aceb691ef7414817d8db5e8e @jonathanong jonathanong committed Sep 2, 2014
Showing with 63 additions and 109 deletions.
  1. +2 −66 .gitignore
  2. +0 −3 .npmignore
  3. +5 −9 .travis.yml
  4. +22 −0 LICENSE
  5. +20 −26 README.md
  6. +14 −5 package.json
View
@@ -1,72 +1,8 @@
-# Compiled source #
-###################
-*.com
-*.class
-*.dll
-*.exe
-*.o
-*.so
-# Packages #
-############
-# it's better to unpack these files and commit the raw source
-# git has its own built in compression methods
-*.7z
-*.dmg
-*.gz
-*.iso
-*.jar
-*.rar
-*.tar
-*.zip
-
-# Logs and databases #
-######################
-*.log
-*.sql
-*.sqlite
-
-# OS generated files #
-######################
.DS_Store*
-ehthumbs.db
-Icon?
-Thumbs.db
-
-# Node.js #
-###########
-lib-cov
-*.seed
*.log
-*.csv
-*.dat
-*.out
-*.pid
*.gz
-pids
-logs
-results
-
-coverage
node_modules
-npm-debug.log
-
-# Components #
-##############
-
-/build
-/components
-
-# ImageMagick #
-###############
-
-*.cache
-*.mpc
-
-# Other #
-#########
-test/*.2
-test/*/*.2
-test/*.mp4
-test/images/originalSideways.jpg.2
+coverage
+cache
View
@@ -1,3 +0,0 @@
-coverage/
-test/
-.travis.yml
View
@@ -1,11 +1,7 @@
-language: node_js
node_js:
- - "0.8"
- - "0.10"
- - "0.11"
-matrix:
- allow_failures:
- - node_js: "0.11"
- fast_finish: true
+- "0.8"
+- "0.10"
+- "0.11"
+language: node_js
script: "npm run-script test-travis"
-after_script: "npm install coveralls@2.10.0 && cat ./coverage/lcov.info | coveralls"
+after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
View
@@ -0,0 +1,22 @@
+
+The MIT License (MIT)
+
+Copyright (c) 2014 Jonathan Ong me@jongleberry.com
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
View
@@ -1,8 +1,11 @@
# Accepts
-[![NPM version](https://badge.fury.io/js/accepts.svg)](http://badge.fury.io/js/accepts)
-[![Build Status](https://travis-ci.org/expressjs/accepts.svg?branch=master)](https://travis-ci.org/expressjs/accepts)
-[![Coverage Status](https://img.shields.io/coveralls/expressjs/accepts.svg?branch=master)](https://coveralls.io/r/expressjs/accepts)
+[![NPM version][npm-image]][npm-url]
+[![Build status][travis-image]][travis-url]
+[![Test coverage][coveralls-image]][coveralls-url]
+[![Dependency Status][david-image]][david-url]
+[![License][license-image]][license-url]
+[![Downloads][downloads-image]][downloads-url]
Higher level content negotation based on [negotiator](https://github.com/federomero/negotiator). Extracted from [koa](https://github.com/koajs/koa) for general use.
@@ -76,26 +79,17 @@ accept.types() // -> [], no explicit types
accept.types('text/html', 'text/json') // -> 'text/html', since it was first
```
-## License
-
-The MIT License (MIT)
-
-Copyright (c) 2013 Jonathan Ong me@jongleberry.com
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
+[npm-image]: https://img.shields.io/npm/v/accepts.svg?style=flat-square
+[npm-url]: https://npmjs.org/package/accepts
+[github-tag]: http://img.shields.io/github/tag/jshttp/accepts.svg?style=flat-square
+[github-url]: https://github.com/jshttp/accepts/tags
+[travis-image]: https://img.shields.io/travis/jshttp/accepts.svg?style=flat-square
+[travis-url]: https://travis-ci.org/jshttp/accepts
+[coveralls-image]: https://img.shields.io/coveralls/jshttp/accepts.svg?style=flat-square
+[coveralls-url]: https://coveralls.io/r/jshttp/accepts?branch=master
+[david-image]: http://img.shields.io/david/jshttp/accepts.svg?style=flat-square
+[david-url]: https://david-dm.org/jshttp/accepts
+[license-image]: http://img.shields.io/npm/l/accepts.svg?style=flat-square
+[license-url]: LICENSE
+[downloads-image]: http://img.shields.io/npm/dm/accepts.svg?style=flat-square
+[downloads-url]: https://npmjs.org/package/accepts
View
@@ -4,15 +4,15 @@
"version": "1.0.7",
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",
"license": "MIT",
- "repository": "expressjs/accepts",
+ "repository": "jshttp/accepts",
"dependencies": {
"mime-types": "~1.0.0",
"negotiator": "0.4.7"
},
"devDependencies": {
- "istanbul": "0.2.11",
- "mocha": "*",
- "should": "*"
+ "istanbul": "~0.3.0",
+ "mocha": "1",
+ "should": "4"
},
"engines": {
"node": ">= 0.8.0"
@@ -21,5 +21,14 @@
"test": "mocha --require should --reporter dot test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --require should --reporter dot test/",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --require should --reporter spec test/"
- }
+ },
+ "keywords": [
+ "content",
+ "negotiation",
+ "accept",
+ "accepts"
+ ],
+ "files": [
+ "index.js"
+ ]
}

0 comments on commit 3214d60

Please sign in to comment.