{"id":15365556,"url":"https://github.com/tunnckocore/simple-get-stream","last_synced_at":"2025-06-16T02:33:18.147Z","repository":{"id":57360192,"uuid":"50547215","full_name":"tunnckoCore/simple-get-stream","owner":"tunnckoCore","description":"Simply wraps `simple-get` and his methods to return Response stream instead of Request stream. For example `simpleGet.get(url).pipe(process.stdout)`.","archived":false,"fork":false,"pushed_at":"2016-11-02T04:19:48.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T02:49:15.157Z","etag":null,"topics":["api","get","got","http","request","simple","simple-get","stream"],"latest_commit_sha":null,"homepage":"http://j.mp/1L7bOLS","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tunnckoCore.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-28T00:06:58.000Z","updated_at":"2019-07-16T07:45:36.000Z","dependencies_parsed_at":"2022-09-06T22:21:41.499Z","dependency_job_id":null,"html_url":"https://github.com/tunnckoCore/simple-get-stream","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Fsimple-get-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Fsimple-get-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Fsimple-get-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Fsimple-get-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tunnckoCore","download_url":"https://codeload.github.com/tunnckoCore/simple-get-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249045371,"owners_count":21203865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","get","got","http","request","simple","simple-get","stream"],"created_at":"2024-10-01T13:15:04.399Z","updated_at":"2025-04-15T09:40:11.157Z","avatar_url":"https://github.com/tunnckoCore.png","language":"JavaScript","readme":"# [simple-get-stream][author-www-url] [![npmjs.com][npmjs-img]][npmjs-url] [![The MIT License][license-img]][license-url] \n\n\u003e Simply wraps [simple-get][] and his methods to return Response stream instead of Request stream. Simple as `simpleGet.get(url).pipe(process.stdout)`\n\n[![code climate][codeclimate-img]][codeclimate-url] [![standard code style][standard-img]][standard-url] [![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url]\n\n## Install\n```\nnpm i simple-get-stream --save\n```\n\n## Usage\n\u003e For more use-cases see the [tests](./test.js)\n\n```js\nconst simpleGetStream = require('simple-get-stream')\n```\n\n### [simpleGetStream](index.js#L32)\n\u003e Request a page and return a response stream\n\n**Params**\n\n* `\u003copts\u003e` **{String|Object}**: Url or options object, passed to `simple-get`.    \n* `returns` **{Stream}**: Response stream instead of Request stream as `simple-get` does.  \n\n**Example**\n\n```js\nconst request = require('simple-get-stream')\nconst stream = request('http://www.tunnckocore.tk')\n\nstream.once('error', console.error)\nstream.pipe(process.stdout) // =\u003e html content of the page\n```\n\n### Advanced example\n\u003e Showing use of `.post` method and getting the response, using [through2][]\n\n```js\nconst through2 = require('through2')\nconst request = require('simple-get-stream')\n\nconst stream = request.post({\n  url: 'http://httpbin.org/post',\n  body: JSON.stringify({\n    foo: 'bar',\n    baz: 'qux'\n  })\n})\n\nstream.once('error', console.error)\nstream.pipe(through2(function (buf) {\n  var res = buf.toString()\n  var data = JSON.parse(res)\n\n  console.log(data.json) \n  /* =\u003e {\n    foo: 'bar',\n    baz: 'qux'\n  } */\n}))\n```\n\n## Related\n* [github-base](https://www.npmjs.com/package/github-base): Base methods for creating node.js apps that work with the GitHub… [more](https://www.npmjs.com/package/github-base) | [homepage](https://github.com/jonschlinkert/github-base)\n* [npm-info](https://www.npmjs.com/package/npm-info): Base class for downloading data from the npm registry | [homepage](https://github.com/doowb/npm-info)\n* [request-all](https://www.npmjs.com/package/request-all): Performs a multiple requests and data from all pages are concatenated… [more](https://www.npmjs.com/package/request-all) | [homepage](https://github.com/tunnckocore/request-all)\n* [simple-get](https://www.npmjs.com/package/simple-get): Simplest way to make http get requests. Supports HTTPS, redirects, gzip/deflate,… [more](https://www.npmjs.com/package/simple-get) | [homepage](https://github.com/feross/simple-get)\n* [simple-get-stream](https://www.npmjs.com/package/simple-get-stream): Simply wraps `simple-get` and his methods to return Response stream instead… [more](https://www.npmjs.com/package/simple-get-stream) | [homepage](https://github.com/tunnckocore/simple-get-stream)\n* [then-got](https://www.npmjs.com/package/then-got): Promisified `simple-get`. | [homepage](https://github.com/hybridables/then-got)\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/tunnckoCore/simple-get-stream/issues/new).  \nBut before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines.\n\n## [Charlike Make Reagent](http://j.mp/1stW47C) [![new message to charlike][new-message-img]][new-message-url] [![freenode #charlike][freenode-img]][freenode-url]\n\n[![tunnckoCore.tk][author-www-img]][author-www-url] [![keybase tunnckoCore][keybase-img]][keybase-url] [![tunnckoCore npm][author-npm-img]][author-npm-url] [![tunnckoCore twitter][author-twitter-img]][author-twitter-url] [![tunnckoCore github][author-github-img]][author-github-url]\n\n[simple-get]: https://github.com/feross/simple-get\n[through2]: https://github.com/rvagg/through2\n\n[npmjs-url]: https://www.npmjs.com/package/simple-get-stream\n[npmjs-img]: https://img.shields.io/npm/v/simple-get-stream.svg?label=simple-get-stream\n\n[license-url]: https://github.com/tunnckoCore/simple-get-stream/blob/master/LICENSE\n[license-img]: https://img.shields.io/badge/license-MIT-blue.svg\n\n[codeclimate-url]: https://codeclimate.com/github/tunnckoCore/simple-get-stream\n[codeclimate-img]: https://img.shields.io/codeclimate/github/tunnckoCore/simple-get-stream.svg\n\n[travis-url]: https://travis-ci.org/tunnckoCore/simple-get-stream\n[travis-img]: https://img.shields.io/travis/tunnckoCore/simple-get-stream/master.svg\n\n[coveralls-url]: https://coveralls.io/r/tunnckoCore/simple-get-stream\n[coveralls-img]: https://img.shields.io/coveralls/tunnckoCore/simple-get-stream.svg\n\n[david-url]: https://david-dm.org/tunnckoCore/simple-get-stream\n[david-img]: https://img.shields.io/david/tunnckoCore/simple-get-stream.svg\n\n[standard-url]: https://github.com/feross/standard\n[standard-img]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n\n[author-www-url]: http://www.tunnckocore.tk\n[author-www-img]: https://img.shields.io/badge/www-tunnckocore.tk-fe7d37.svg\n\n[keybase-url]: https://keybase.io/tunnckocore\n[keybase-img]: https://img.shields.io/badge/keybase-tunnckocore-8a7967.svg\n\n[author-npm-url]: https://www.npmjs.com/~tunnckocore\n[author-npm-img]: https://img.shields.io/badge/npm-~tunnckocore-cb3837.svg\n\n[author-twitter-url]: https://twitter.com/tunnckoCore\n[author-twitter-img]: https://img.shields.io/badge/twitter-@tunnckoCore-55acee.svg\n\n[author-github-url]: https://github.com/tunnckoCore\n[author-github-img]: https://img.shields.io/badge/github-@tunnckoCore-4183c4.svg\n\n[freenode-url]: http://webchat.freenode.net/?channels=charlike\n[freenode-img]: https://img.shields.io/badge/freenode-%23charlike-5654a4.svg\n\n[new-message-url]: https://github.com/tunnckoCore/ama\n[new-message-img]: https://img.shields.io/badge/ask%20me-anything-green.svg\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftunnckocore%2Fsimple-get-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftunnckocore%2Fsimple-get-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftunnckocore%2Fsimple-get-stream/lists"}