{"id":24135045,"url":"https://github.com/informatix8/source-attribution","last_synced_at":"2026-06-08T02:31:16.140Z","repository":{"id":57118662,"uuid":"198879923","full_name":"informatix8/source-attribution","owner":"informatix8","description":"Append content to copied clipboard text.","archived":false,"fork":false,"pushed_at":"2019-07-26T13:40:26.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T09:19:37.253Z","etag":null,"topics":["attribution","branding","copy-paste"],"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/informatix8.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":"2019-07-25T18:07:42.000Z","updated_at":"2019-07-26T13:40:19.000Z","dependencies_parsed_at":"2022-08-23T09:11:10.025Z","dependency_job_id":null,"html_url":"https://github.com/informatix8/source-attribution","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/informatix8%2Fsource-attribution","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/informatix8%2Fsource-attribution/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/informatix8%2Fsource-attribution/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/informatix8%2Fsource-attribution/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/informatix8","download_url":"https://codeload.github.com/informatix8/source-attribution/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241356360,"owners_count":19949511,"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":["attribution","branding","copy-paste"],"created_at":"2025-01-12T01:19:16.289Z","updated_at":"2026-06-08T02:31:11.115Z","avatar_url":"https://github.com/informatix8.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Source Attribution\n\nAppend content to copied clipboard text.\n\n## Features\n- Append your product name and source URL to copied text from your web page\n- Custom copied character count threshold for addiing the content\n- Tag copy events in Google Analytics\n\n## Dependencies\n\n- Lodash merge function\n\n## Usage\n\n### Install\n\n```shell\nnpm install @informatix8/source-attribution --save-dev\n```\n\n### CDN\n\n```html\n\u003cscript src=\"https://unpkg.com/@informatix8/source-attribution/dist/source-attribution.all.umd.js\"\u003e\u003c/script\u003e\n```\n\n### Vanilla Javascript\n\n```javascript\nnew SourceAttribution({\n  productName: 'My Product'\n});\n```\n\n### Add Google Analytics\n\nGoogle Analytics instructs that you add their javascript to the `\u003chead\u003e` of your document.\n\n```html\n\u003chead\u003e\n    \u003cscript async=\"async\" src=\"https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxxxx-x\"\u003e\u003c/script\u003e\n    \u003cscript\u003e\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('js', new Date());\n      gtag('config', 'UA-xxxxxxxxx-x');\n    \u003c/script\u003e\n\u003c/head\u003e\n```\n\n## Development\n\n```shell\nnpm run dev\n```\n\n## Build\n\n```shell\nnpm run build\n```\n\n## Release\n\n```shell\nnpm run build\ngit tag -a vX.Y.Z\ngit push origin master\ngit push origin --tags\nnpm publish --access=public .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finformatix8%2Fsource-attribution","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finformatix8%2Fsource-attribution","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finformatix8%2Fsource-attribution/lists"}