{"id":22308776,"url":"https://github.com/ratson/posthtml-insert","last_synced_at":"2025-03-26T01:28:55.630Z","repository":{"id":57328808,"uuid":"111822213","full_name":"ratson/posthtml-insert","owner":"ratson","description":"PostHTML plugin to insert content after HTML tag.","archived":false,"fork":false,"pushed_at":"2019-05-17T14:48:15.000Z","size":4,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T12:15:12.883Z","etag":null,"topics":["html","posthtml","posthtml-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ratson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-23T15:00:05.000Z","updated_at":"2019-05-17T14:48:16.000Z","dependencies_parsed_at":"2022-08-29T10:01:34.597Z","dependency_job_id":null,"html_url":"https://github.com/ratson/posthtml-insert","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/ratson%2Fposthtml-insert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fposthtml-insert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fposthtml-insert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fposthtml-insert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ratson","download_url":"https://codeload.github.com/ratson/posthtml-insert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245571264,"owners_count":20637311,"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":["html","posthtml","posthtml-plugin"],"created_at":"2024-12-03T20:15:15.150Z","updated_at":"2025-03-26T01:28:55.605Z","avatar_url":"https://github.com/ratson.png","language":"JavaScript","readme":"# posthtml-insert\n\nPostHTML plugin to insert content after HTML tag.\n\n## Installation\n\n```\nnpm install posthtml-insert --save\n```\n\n## Usage\n\n\u003c!-- eslint-disable strict,no-console,node/no-missing-require --\u003e\n\n```js\nconst posthtml = require('posthtml')\nconst insert = require('posthtml-insert')\n\nposthtml([insert({ selector: 'body', content: '\u003cdiv\u003etest\u003c/div\u003e' })])\n  .process('\u003cbody\u003e\u003c/body\u003e')\n  .then(({ html }) =\u003e {\n    console.log(html)\n    // =\u003e '\u003cbody\u003e\u003cdiv\u003etest\u003c/div\u003e\u003c/body\u003e'\n  })\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratson%2Fposthtml-insert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fratson%2Fposthtml-insert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratson%2Fposthtml-insert/lists"}