{"id":15573220,"url":"https://github.com/polo2ro/hsplit","last_synced_at":"2025-03-29T06:43:54.429Z","repository":{"id":57267203,"uuid":"68542716","full_name":"polo2ro/hsplit","owner":"polo2ro","description":"split html content using the headers tags","archived":false,"fork":false,"pushed_at":"2016-09-20T19:06:41.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-15T11:11:00.516Z","etag":null,"topics":["javascript-library","string-manipulation"],"latest_commit_sha":null,"homepage":null,"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/polo2ro.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":"2016-09-18T19:29:49.000Z","updated_at":"2016-09-19T06:51:39.000Z","dependencies_parsed_at":"2022-08-25T03:41:19.486Z","dependency_job_id":null,"html_url":"https://github.com/polo2ro/hsplit","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polo2ro%2Fhsplit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polo2ro%2Fhsplit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polo2ro%2Fhsplit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polo2ro%2Fhsplit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polo2ro","download_url":"https://codeload.github.com/polo2ro/hsplit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246150415,"owners_count":20731419,"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":["javascript-library","string-manipulation"],"created_at":"2024-10-02T18:11:22.937Z","updated_at":"2025-03-29T06:43:54.406Z","avatar_url":"https://github.com/polo2ro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hsplit\n\nsplit html content using the headers tags\n\nThis library accept html input and give back a DOM node for the \"article\" element.\nIf the article element does not exists, il will be created.\n\nThe content of article is splitted into sections using the html headers as separator.\n\nThis has been created to index html documents into the lunr search engine, because\neach header can have it's own url, the splitted elements can be indexed as separeted elements.\n\nsee [hexo-generator-lunr](https://github.com/polo2ro/hexo-generator-lunr).\n\n\n## Install\n\n```bash\nnpm install --save hsplit\n```\n\n## Usage example\n\n```javascript\nconst hsplit = require('hsplit');\n\nhsplit.document('\u003ch2\u003eTitle\u003c/h2\u003e\u003cp\u003eContent\u003c/p\u003e')\n.then(article =\u003e {\n\n});\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolo2ro%2Fhsplit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolo2ro%2Fhsplit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolo2ro%2Fhsplit/lists"}