Skip to content

Commit

Permalink
use npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Aug 6, 2015
1 parent 66c8d4b commit 193b80e
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 91 deletions.
9 changes: 0 additions & 9 deletions .npmignore

This file was deleted.

8 changes: 7 additions & 1 deletion .travis.yml
@@ -1,4 +1,10 @@
sudo: false
language: node_js
node_js:
- '0.11'
- '3'
- '2'
- '1'
- '0.12'
- '0.10'
script: "npm run test-travis"
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
5 changes: 3 additions & 2 deletions AUTHORS
@@ -1,5 +1,6 @@
# Ordered by date of first contribution.
# Auto-generated by 'contributors' on Thu, 13 Mar 2014 01:22:02 GMT.
# Auto-generated by 'contributors' on Thu, 06 Aug 2015 00:09:41 GMT.
# https://github.com/xingrz/node-contributors

fengmk2 <fengmk2@gmail.com> (https://github.com/fengmk2)
fengmk2 <fengmk2@gmail.com> (http://fengmk2.com)
Steven Vachon <contact@svachon.com> (https://github.com/stevenvachon)
1 change: 1 addition & 0 deletions LICENSE.txt
@@ -1,6 +1,7 @@
This software is licensed under the MIT License.

Copyright (C) 2014 fengmk2 <fengmk2@gmail.com> and other contributors
Copyright (C) 2015 node-modules

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
47 changes: 0 additions & 47 deletions Makefile

This file was deleted.

51 changes: 22 additions & 29 deletions README.md
@@ -1,13 +1,27 @@
default-user-agent
=======

[![Build Status](https://secure.travis-ci.org/fengmk2/default-user-agent.png)](http://travis-ci.org/node-modules/default-user-agent) [![Dependency Status](https://gemnasium.com/fengmk2/default-user-agent.png)](https://gemnasium.com/node-modules/default-user-agent)

[![NPM](https://nodei.co/npm/default-user-agent.png?downloads=true&stars=true)](https://nodei.co/npm/default-user-agent/)

![logo](https://raw.github.com/node-modules/default-user-agent/master/logo.png)

Default user agent string for nodejs http request
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Gittip][gittip-image]][gittip-url]
[![David deps][david-image]][david-url]
[![npm download][download-image]][download-url]

[npm-image]: https://img.shields.io/npm/v/default-user-agent.svg?style=flat-square
[npm-url]: https://npmjs.org/package/default-user-agent
[travis-image]: https://img.shields.io/travis/node-modules/default-user-agent.svg?style=flat-square
[travis-url]: https://travis-ci.org/node-modules/default-user-agent
[coveralls-image]: https://img.shields.io/coveralls/node-modules/default-user-agent.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/node-modules/default-user-agent?branch=master
[gittip-image]: https://img.shields.io/gittip/fengmk2.svg?style=flat-square
[gittip-url]: https://www.gittip.com/fengmk2/
[david-image]: https://img.shields.io/david/node-modules/default-user-agent.svg?style=flat-square
[david-url]: https://david-dm.org/node-modules/default-user-agent
[download-image]: https://img.shields.io/npm/dm/default-user-agent.svg?style=flat-square
[download-url]: https://npmjs.org/package/default-user-agent

Default user agent string for Node.js http request

## Install

Expand All @@ -30,25 +44,4 @@ console.log(ua('urllib', '0.0.1')); // 'urllib/0.0.1 Node.js/0.11.15 (OS X Yosem

## License

(The MIT License)

Copyright (c) 2014 fengmk2 &lt;fengmk2@gmail.com&gt; and other contributors

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.
[MIT](LICENSE.txt)
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -5,7 +5,7 @@
* MIT Licensed
*
* Authors:
* fengmk2 <fengmk2@gmail.com> (http://fengmk2.github.com)
* fengmk2 <fengmk2@gmail.com> (http://fengmk2.com)
*/

'use strict';
Expand Down
Binary file removed logo.png
Binary file not shown.
11 changes: 10 additions & 1 deletion package.json
Expand Up @@ -3,8 +3,17 @@
"version": "0.0.1",
"description": "Default user agent string for nodejs http request",
"main": "index.js",
"files": [
"index.js"
],
"scripts": {
"test": "make test-all"
"test": "mocha --check-leaks -R spec -t 5000 test/*.test.js",
"test-cov": "istanbul cover node_modules/.bin/_mocha -- --check-leaks -t 5000 test/*.test.js",
"test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- --check-leaks -t 5000 test/*.test.js",
"lint": "jshint .",
"autod": "autod -w --prefix '~'",
"cnpm": "npm install --registry=https://registry.npm.taobao.org",
"contributors": "contributors -f plain -o AUTHORS"
},
"dependencies": {
"os-name": "~1.0.3"
Expand Down
2 changes: 1 addition & 1 deletion test/default-user-agent.test.js
Expand Up @@ -5,7 +5,7 @@
* MIT Licensed
*
* Authors:
* fengmk2 <fengmk2@gmail.com> (http://fengmk2.github.com)
* fengmk2 <fengmk2@gmail.com> (http://fengmk2.com)
*/

"use strict";
Expand Down

0 comments on commit 193b80e

Please sign in to comment.