From 0a98604bcd2ab527c26f39f6d73a0ad761790708 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 30 Jun 2017 19:06:59 +0200 Subject: [PATCH] Meta tweaks --- .editorconfig | 2 +- .gitattributes | 1 + .gitignore | 1 + .npmrc | 1 + license | 20 ++---- package.json | 172 ++++++++++++++++++++++++------------------------- readme.md | 2 +- 7 files changed, 95 insertions(+), 104 deletions(-) create mode 100644 .npmrc diff --git a/.editorconfig b/.editorconfig index 98a761ddc..1c6314a31 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,6 +7,6 @@ charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true -[{package.json,*.yml}] +[*.yml] indent_style = space indent_size = 2 diff --git a/.gitattributes b/.gitattributes index 1ee0494a7..df4b07a97 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,3 @@ * text=auto *.ai binary +*.js text eol=lf diff --git a/.gitignore b/.gitignore index 1fd04daf2..6bff31485 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules +yarn.lock coverage .nyc_output diff --git a/.npmrc b/.npmrc new file mode 100644 index 000000000..43c97e719 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +package-lock=false diff --git a/license b/license index 654d0bfe9..e7af2f771 100644 --- a/license +++ b/license @@ -1,21 +1,9 @@ -The MIT License (MIT) +MIT License Copyright (c) Sindre Sorhus (sindresorhus.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: +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 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. +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. diff --git a/package.json b/package.json index 501a37fc2..24614f365 100644 --- a/package.json +++ b/package.json @@ -1,88 +1,88 @@ { - "name": "got", - "version": "7.1.0", - "description": "Simplified HTTP requests", - "license": "MIT", - "repository": "sindresorhus/got", - "maintainers": [ - { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - { - "name": "Vsevolod Strukchinsky", - "email": "floatdrop@gmail.com", - "url": "github.com/floatdrop" - }, - { - "name": "Alexander Tesfamichael", - "email": "alex.tesfamichael@gmail.com", - "url": "alextes.me" - } - ], - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && nyc ava", - "coveralls": "nyc report --reporter=text-lcov | coveralls" - }, - "files": [ - "index.js" - ], - "keywords": [ - "http", - "https", - "get", - "got", - "url", - "uri", - "request", - "util", - "utility", - "simple", - "curl", - "wget", - "fetch", - "net", - "network", - "electron" - ], - "dependencies": { - "decompress-response": "^3.2.0", - "duplexer3": "^0.1.4", - "get-stream": "^3.0.0", - "is-plain-obj": "^1.1.0", - "is-retry-allowed": "^1.0.0", - "is-stream": "^1.0.0", - "isurl": "^1.0.0-alpha5", - "lowercase-keys": "^1.0.0", - "p-cancelable": "^0.3.0", - "p-timeout": "^1.1.1", - "safe-buffer": "^5.0.1", - "timed-out": "^4.0.0", - "url-parse-lax": "^1.0.0", - "url-to-options": "^1.0.1" - }, - "devDependencies": { - "ava": "^0.20.0", - "coveralls": "^2.11.4", - "form-data": "^2.1.1", - "get-port": "^3.0.0", - "into-stream": "^3.0.0", - "nyc": "^11.0.2", - "pem": "^1.4.4", - "pify": "^3.0.0", - "tempfile": "^2.0.0", - "tempy": "^0.1.0", - "universal-url": "1.0.0-alpha", - "xo": "^0.18.0" - }, - "ava": { - "concurrency": 4 - }, - "browser": { - "decompress-response": false - } + "name": "got", + "version": "7.1.0", + "description": "Simplified HTTP requests", + "license": "MIT", + "repository": "sindresorhus/got", + "maintainers": [ + { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + { + "name": "Vsevolod Strukchinsky", + "email": "floatdrop@gmail.com", + "url": "github.com/floatdrop" + }, + { + "name": "Alexander Tesfamichael", + "email": "alex.tesfamichael@gmail.com", + "url": "alextes.me" + } + ], + "engines": { + "node": ">=4" + }, + "scripts": { + "test": "xo && nyc ava", + "coveralls": "nyc report --reporter=text-lcov | coveralls" + }, + "files": [ + "index.js" + ], + "keywords": [ + "http", + "https", + "get", + "got", + "url", + "uri", + "request", + "util", + "utility", + "simple", + "curl", + "wget", + "fetch", + "net", + "network", + "electron" + ], + "dependencies": { + "decompress-response": "^3.2.0", + "duplexer3": "^0.1.4", + "get-stream": "^3.0.0", + "is-plain-obj": "^1.1.0", + "is-retry-allowed": "^1.0.0", + "is-stream": "^1.0.0", + "isurl": "^1.0.0-alpha5", + "lowercase-keys": "^1.0.0", + "p-cancelable": "^0.3.0", + "p-timeout": "^1.1.1", + "safe-buffer": "^5.0.1", + "timed-out": "^4.0.0", + "url-parse-lax": "^1.0.0", + "url-to-options": "^1.0.1" + }, + "devDependencies": { + "ava": "^0.20.0", + "coveralls": "^2.11.4", + "form-data": "^2.1.1", + "get-port": "^3.0.0", + "into-stream": "^3.0.0", + "nyc": "^11.0.2", + "pem": "^1.4.4", + "pify": "^3.0.0", + "tempfile": "^2.0.0", + "tempy": "^0.1.0", + "universal-url": "1.0.0-alpha", + "xo": "^0.18.0" + }, + "ava": { + "concurrency": 4 + }, + "browser": { + "decompress-response": false + } } diff --git a/readme.md b/readme.md index 074530f3a..f44341b1c 100644 --- a/readme.md +++ b/readme.md @@ -32,7 +32,7 @@ Created because [`request`](https://github.com/request/request) is bloated *(sev ## Install ``` -$ npm install --save got +$ npm install got ```