Comparing version 2.7.0 to 2.7.1
@@ -9,3 +9,3 @@ const http = require('http') | ||
/** | ||
* phin options object | ||
* phin options object. phin also supports all options from <a href="https://nodejs.org/api/http.html#http_http_request_options_callback">http.request(options, callback)</a> by passing them on to this method (or similar). | ||
* @typedef {Object} phinOptions | ||
@@ -12,0 +12,0 @@ * @property {string} url - URL to request (autodetect infers from this URL) |
{ | ||
"name": "phin", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"description": "Ultra-simple, lightweight, dependency-free Node.JS HTTP request client", | ||
"main": "lib/phin.js", | ||
"scripts": { | ||
"test": "npm install --only=dev && node ./tests/test.js", | ||
"test": "echo \"Tested before deployment.\" && exit 0", | ||
"test-dev": "npm install --only=dev && node ./tests/test.js", | ||
"prepublishOnly": "npm test", | ||
@@ -9,0 +10,0 @@ "prepush": "npm test", |
@@ -21,3 +21,3 @@ <p align="center" style="text-align: center"><img src="https://raw.githubusercontent.com/ethanent/phin/master/media/phin-textIncluded.png" width="250" alt="phin logo"/></p> | ||
## Installation | ||
## Install | ||
@@ -33,5 +33,5 @@ ``` | ||
Also, phin is super **lightweight**. Like **99.6% smaller than request** lightweight. | ||
Also, phin is super **lightweight**. Like **99.8% smaller than request** lightweight. To compare to other libraries, see [phin vs. the Competition](https://github.com/ethanent/phin/blob/master/README.md#phin-vs-the-competition). | ||
<img src="https://pbs.twimg.com/media/DSLU_UcUEAI4bgc.jpg:large" alt="Request is over 6MB in size. phin is just 25KB in size."/> | ||
<img src="https://pbs.twimg.com/media/DSPF9TaUQAA0tIe.jpg:large" alt="phin became 33% lighter with release 2.7.0!"/> | ||
@@ -87,2 +87,19 @@ | ||
`phin` has [`util.promisify`](https://nodejs.org/dist/latest-v8.x/docs/api/util.html#util_util_promisify_original) support. The promisified library can also be accessed with `require('phin').promisified`! | ||
`phin` has [`util.promisify`](https://nodejs.org/dist/latest-v8.x/docs/api/util.html#util_util_promisify_original) support. The promisified library can also be accessed with `require('phin').promisified`! | ||
## phin vs. the Competition | ||
<img src="https://pbs.twimg.com/media/DSLU_UcUEAI4bgc.jpg:large" alt="Request is over 6MB in size. phin is just 25KB in size."/> | ||
phin is super lightweight, and *it's getting lighter all the time*. | ||
It contains all of the common HTTP client features included in competing libraries! | ||
Package | Size (KB) | Dependencies<br />(Tree Count) | Size Comparison<br />(vs. phin) | ||
--- | --- | --- | --- | ||
request | 4,446 | [53](http://npm.anvaka.com/#/view/2d/request) | 444.6x | ||
superagent | 1,235 | [24](http://npm.anvaka.com/#/view/2d/superagent) | 123.5x | ||
got | 664 | [44](http://npm.anvaka.com/#/view/2d/got) | 66.4x | ||
snekfetch | 107 | [0](http://npm.anvaka.com/#/view/2d/snekfetch) | 10.7x | ||
phin | 10 | [0](http://npm.anvaka.com/#/view/2d/phin) | 1x |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10034
102