{"id":23817769,"url":"https://github.com/lsongdev/tinyh","last_synced_at":"2025-02-21T21:57:14.979Z","repository":{"id":57143567,"uuid":"207442796","full_name":"lsongdev/tinyh","owner":"lsongdev","description":"super tiny network library","archived":false,"fork":false,"pushed_at":"2022-12-09T09:17:28.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T22:23:50.039Z","etag":null,"topics":["http","networking","tinyhttp","web"],"latest_commit_sha":null,"homepage":"https://npmjs.org/tinyh","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/lsongdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-10T01:57:51.000Z","updated_at":"2023-01-20T18:47:39.000Z","dependencies_parsed_at":"2023-01-25T21:00:49.996Z","dependency_job_id":null,"html_url":"https://github.com/lsongdev/tinyh","commit_stats":null,"previous_names":["song940/http","lsongdev/tinyh"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Ftinyh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Ftinyh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Ftinyh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsongdev%2Ftinyh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsongdev","download_url":"https://codeload.github.com/lsongdev/tinyh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240093157,"owners_count":19746780,"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":["http","networking","tinyhttp","web"],"created_at":"2025-01-02T05:48:43.432Z","updated_at":"2025-02-21T21:57:14.960Z","avatar_url":"https://github.com/lsongdev.png","language":"JavaScript","readme":"## tinyh\n\n\u003e super tiny http library\n\n[![Build Status](https://travis-ci.org/song940/tinyh.svg?branch=master)](https://travis-ci.org/song940/tinyh)\n\n### Installation\n\n```bash\n$ npm install tinyh\n```\n\n### Example\n\n```js\nconst { get, readStream } = require('tinyh');\n\nPromise\n.resolve()\n.then(() =\u003e get('https://httpbin.org/get'))\n.then(ensureStatusCode(200))\n.then(readStream)\n.then(JSON.parse)\n.then(response =\u003e {\n  console.log(response);\n});\n```\n\nAsync/Await\n\n```js\nconst { get, readStream } = require('tinyh');\n\n(async () =\u003e {\n\n  const response = await get('https://httpbin.org/get');\n  console.log(response.statusCode);\n\n  const body = await readStream(response);\n  console.log(JSON.parse(body));\n\n})();\n```\n\n### Contributing\n- Fork this Repo first\n- Clone your Repo\n- Install dependencies by `$ npm install`\n- Checkout a feature branch\n- Feel free to add your features\n- Make sure your features are fully tested\n- Publish your local branch, Open a pull request\n- Enjoy hacking \u003c3\n\n### MIT\n\nThis work is licensed under the [MIT license](./LICENSE).\n\n---","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Ftinyh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsongdev%2Ftinyh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsongdev%2Ftinyh/lists"}