{"id":17472507,"url":"https://github.com/shinnn/fetch-cheerio-object","last_synced_at":"2025-06-12T00:33:38.483Z","repository":{"id":16210856,"uuid":"18957844","full_name":"shinnn/fetch-cheerio-object","owner":"shinnn","description":"Fetch an HTML and parse it as a cheerio object","archived":false,"fork":false,"pushed_at":"2018-12-16T18:46:41.000Z","size":66,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T16:11:40.169Z","etag":null,"topics":["async","cheerio","fetch","get","html","javascript","nodejs","parse","promise","request"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shinnn.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":"2014-04-20T04:49:49.000Z","updated_at":"2019-03-15T20:45:45.000Z","dependencies_parsed_at":"2022-08-24T19:30:17.425Z","dependency_job_id":null,"html_url":"https://github.com/shinnn/fetch-cheerio-object","commit_stats":null,"previous_names":["shinnn/grunt-esnext"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/shinnn/fetch-cheerio-object","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Ffetch-cheerio-object","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Ffetch-cheerio-object/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Ffetch-cheerio-object/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Ffetch-cheerio-object/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shinnn","download_url":"https://codeload.github.com/shinnn/fetch-cheerio-object/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Ffetch-cheerio-object/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259370598,"owners_count":22847346,"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":["async","cheerio","fetch","get","html","javascript","nodejs","parse","promise","request"],"created_at":"2024-10-18T17:25:03.914Z","updated_at":"2025-06-12T00:33:38.453Z","avatar_url":"https://github.com/shinnn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fetch-cheerio-object\n\n[![npm version](https://img.shields.io/npm/v/fetch-cheerio-object.svg)](https://www.npmjs.com/package/fetch-cheerio-object)\n[![Build Status](https://travis-ci.com/shinnn/fetch-cheerio-object.svg?branch=master)](https://travis-ci.com/shinnn/fetch-cheerio-object)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/fetch-cheerio-object.svg)](https://coveralls.io/github/shinnn/fetch-cheerio-object?branch=master)\n\nA [Node.js](https://nodejs.org/) module to [fetch](https://fetch.spec.whatwg.org/) an HTML and parse it as a [cheerio](https://cheerio.js.org/) object\n\n```javascript\nconst fetchCheerioObject = require('fetch-cheerio-object');\n\n(async () =\u003e {\n  const $ = await fetchCheerioObject('https://example.org/');\n  $('title').text(); //=\u003e 'Example Domain'\n})();\n```\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).\n\n```\nnpm install fetch-cheerio-object\n```\n\n## API\n\n```javascript\nconst fetchCheerioObject = require('fetch-cheerio-object');\n```\n\n### fetchCheerioObject(*url* [, *options*])\n\n*url*: `string`  \n*options*: `Object` (directly passed to [`cheerio.load()`](https://github.com/cheeriojs/cheerio#loading))  \nReturn: `Promise\u003cObject\u003e`\n\nThe API is quite similar to the [node-fetch](https://github.com/bitinn/node-fetch)'s. The only difference between them is that *fetch-cheerio-object* parses fetched contents as a [cheerio](https://github.com/cheeriojs/cheerio) object and returns a `Promise` for it.\n\n## License\n\n[ISC License](./LICENSE) © 2017 - 2018 Shinnosuke Watanabe\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Ffetch-cheerio-object","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshinnn%2Ffetch-cheerio-object","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Ffetch-cheerio-object/lists"}