{"id":16829509,"url":"https://github.com/acinader/link-painter","last_synced_at":"2026-05-17T17:02:34.640Z","repository":{"id":34923386,"uuid":"190664555","full_name":"acinader/link-painter","owner":"acinader","description":"Add Query Parameters to Links in HTML","archived":false,"fork":false,"pushed_at":"2023-01-03T23:39:58.000Z","size":598,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-01T12:27:52.898Z","etag":null,"topics":["filter","google-analytics","library","nodejs","query-string","querystring","sindresorhus","stream","stream-filter","url"],"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/acinader.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-06-06T23:48:27.000Z","updated_at":"2019-08-27T20:04:52.000Z","dependencies_parsed_at":"2023-01-15T10:29:11.813Z","dependency_job_id":null,"html_url":"https://github.com/acinader/link-painter","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acinader%2Flink-painter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acinader%2Flink-painter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acinader%2Flink-painter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acinader%2Flink-painter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acinader","download_url":"https://codeload.github.com/acinader/link-painter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244110086,"owners_count":20399561,"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":["filter","google-analytics","library","nodejs","query-string","querystring","sindresorhus","stream","stream-filter","url"],"created_at":"2024-10-13T11:34:02.913Z","updated_at":"2025-10-04T07:33:01.815Z","avatar_url":"https://github.com/acinader.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# link-painter [![Build Status](https://travis-ci.org/acinader/link-painter.svg?branch=master)](https://travis-ci.org/acinader/link-painter)\nAdd Query Parameters to Links in HTML\n\n### install\n`npm install link-painter`\n\n### example\n```js\nconst queryParams = {\n\tutm_source: 'newsletter',\n\tutm_medium: 'link',\n\tutm_campaign: 'link-painter'\n};\n\nconst html = fs.createReadStream('./sample.html', 'utf-8');\nconst result = await getStream(html.pipe(new LinkPainter('my.example.com', queryParams)));\n```\n\nyields:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\t\u003chead\u003e\u003c/head\u003e\n\t\u003cbody\u003e\n\t\t\u003cdiv\u003e\u003ca href=\"https://my.example.com/?utm_source=newsletter\u0026amp;utm_medium=link\u0026amp;utm_campaign=link-painter\"\u003eclick me\u003c/a\u003e\u003c/div\u003e\n\t\t\u003cdiv\u003e\u003ca href=\"https://google.com\"\u003eor me\u003c/a\u003e\u003c/div\u003e\n\t\u003c/body\u003e\n\u003c/html\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facinader%2Flink-painter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facinader%2Flink-painter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facinader%2Flink-painter/lists"}