{"id":21582391,"url":"https://github.com/base-cms/body-import-parser","last_synced_at":"2025-06-16T07:06:16.499Z","repository":{"id":34591581,"uuid":"179104462","full_name":"base-cms/body-import-parser","owner":"base-cms","description":"Cleans/extracts elements from content bodies. For use with content imports.","archived":false,"fork":false,"pushed_at":"2022-12-09T18:06:24.000Z","size":1278,"stargazers_count":0,"open_issues_count":15,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T08:24:13.722Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://body-import-parser.base-cms.io","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/base-cms.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-04-02T15:13:31.000Z","updated_at":"2019-07-09T19:23:46.000Z","dependencies_parsed_at":"2023-01-15T08:00:53.089Z","dependency_job_id":null,"html_url":"https://github.com/base-cms/body-import-parser","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/base-cms/body-import-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base-cms%2Fbody-import-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base-cms%2Fbody-import-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base-cms%2Fbody-import-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base-cms%2Fbody-import-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/base-cms","download_url":"https://codeload.github.com/base-cms/body-import-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base-cms%2Fbody-import-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260116647,"owners_count":22961064,"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-24T14:15:42.442Z","updated_at":"2025-06-16T07:06:16.475Z","avatar_url":"https://github.com/base-cms.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Body Import Parser\nCleans/extracts elements from content bodies. For use with content imports.\n\n## Installation\n**Note:** _This repository requires **Docker Engine 18.06.0** or greater as Compose file format 3.7 is used._ All commands are assumed to be ran from the project root.\n\n1. Clone the repository\n2. Install the project dependencies via `scripts/yarn.sh`\n3. Start the service via `docker-compose up app`\n4. The service will now be running on `http://0.0.0.0:4986`\n\n## Usage\nTo run a cleanup/extraction on an HTML string, submit a `POST` request to the desired endpoint (see below). All requests MUST contain the `Content-Type: text/html` header and provide a raw HTML body (not a JSON body or a JSON encoded HTML body). This can be done via cURL, fetch, or any other tool (e.g. Insomnia). The server will return a JSON response with the extracted values and the HTML (the exact format varies depending on the rule).\n\n**Note:** It is assumed that posted HTML will be encoded in UTF-8 (and will respond in-kind). As such, ensure character encoding conversions have been completed _before_ using this service.\n\n### Available Endpoints\n  - `/pennwell/default` See the rule's [documentation](https://github.com/base-cms/body-import-parser/tree/master/src/rules/pennwell) for more information.\n\n\n## Managing Dependencies\nBecause this repository uses Docker, you should _not_ execute Yarn directly. Instead, execute Yarn commands using the provided script. For example, to add a dependency you would run `scripts/yarn.sh add [package-name]` from the project root. This works for all Yarn commands, e.g, `scripts/yarn.sh [command] [args]`\n\n## Additional Scripts\nYou can execute an interactive terminal (inside the Docker container) via `scripts/terminal.sh`. You can also lint the entire project using `scripts/lint.sh`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbase-cms%2Fbody-import-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbase-cms%2Fbody-import-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbase-cms%2Fbody-import-parser/lists"}