{"id":21540933,"url":"https://github.com/reshape/parser","last_synced_at":"2025-10-05T15:08:12.478Z","repository":{"id":57354562,"uuid":"65310999","full_name":"reshape/parser","owner":"reshape","description":"a simple and fairly forgiving html parser for reshape","archived":false,"fork":false,"pushed_at":"2019-02-05T12:32:35.000Z","size":309,"stargazers_count":8,"open_issues_count":6,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T05:26:36.632Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reshape.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-09T16:32:19.000Z","updated_at":"2018-10-04T19:07:47.000Z","dependencies_parsed_at":"2022-09-12T04:10:50.120Z","dependency_job_id":null,"html_url":"https://github.com/reshape/parser","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reshape%2Fparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reshape%2Fparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reshape%2Fparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reshape%2Fparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reshape","download_url":"https://codeload.github.com/reshape/parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247730067,"owners_count":20986404,"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":[],"created_at":"2024-11-24T05:00:34.078Z","updated_at":"2025-10-05T15:08:07.437Z","avatar_url":"https://github.com/reshape.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reshape Parser\n\n[![npm](https://img.shields.io/npm/v/reshape-parser.svg?style=flat-square)](https://npmjs.com/package/reshape-parser)\n[![tests](https://img.shields.io/travis/reshape/parser.svg?style=flat-square)](https://travis-ci.org/reshape/parser?branch=master)\n[![dependencies](https://img.shields.io/david/reshape/parser.svg?style=flat-square)](https://david-dm.org/reshape/parser)\n[![coverage](https://img.shields.io/coveralls/reshape/parser.svg?style=flat-square)](https://coveralls.io/r/reshape/parser?branch=master)\n\nAn HTML parser for [reshape](https://github.com/reshape/reshape) based on [parse5](https://github.com/inikulin/parse5), featuring source location info and more robust node types.\n\n\u003e **Note:** This project is in early development, and versioning is a little different. [Read this](http://markup.im/#q4_cRZ1Q) for more details.\n\n### Installation\n\n`npm install reshape-parser -S`\n\n\u003e **Note:** This project is compatible with node v6+ only\n\n### Usage\n\n```js\nconst parser = require('reshape-parser')\nconst html = '\u003cp\u003ehello world\u003c/p\u003e'\n\nparser(html) // returns a reshape AST\n```\n\n#### Options\n\nNo options are required, all are optional.\n\n| Name | Description | Default |\n| ---- | ----------- | ------- |\n| **filename** | Attach a filename to the `location` info in each node. | |\n\n### The Reshape AST\n\nSee the [Reshape AST documentation](https://github.com/reshape/reshape#reshape-ast) for more information on the format.\n\n### License \u0026 Contributing\n\n- Details on the license [can be found here](LICENSE.md)\n- Details on running tests and contributing [can be found here](contributing.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freshape%2Fparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freshape%2Fparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freshape%2Fparser/lists"}