{"id":15876755,"url":"https://github.com/JsDaddy/ngx-copypaste","last_synced_at":"2025-10-17T18:32:03.275Z","repository":{"id":34457980,"uuid":"178838855","full_name":"JsDaddy/ngx-copypaste","owner":"JsDaddy","description":"A pure and awesome copy  paste directive for Angular","archived":false,"fork":false,"pushed_at":"2025-09-24T20:23:09.000Z","size":13429,"stargazers_count":30,"open_issues_count":7,"forks_count":3,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-10-11T14:24:38.039Z","etag":null,"topics":["angular","angular-clipboard","angular-copypaste","clipboard","copypaste","ngx","ngx-clipboard","ngx-copypaste","typescript"],"latest_commit_sha":null,"homepage":"https://jsdaddy.github.io/ngx-copypaste/","language":"TypeScript","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/JsDaddy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-04-01T10:21:19.000Z","updated_at":"2025-09-24T07:38:11.000Z","dependencies_parsed_at":"2024-01-29T12:04:35.799Z","dependency_job_id":"7aea5f5b-6d6b-4514-9885-a92dd3c10406","html_url":"https://github.com/JsDaddy/ngx-copypaste","commit_stats":{"total_commits":146,"total_committers":12,"mean_commits":"12.166666666666666","dds":0.5753424657534247,"last_synced_commit":"615724d4ed313c255a879046fd82ac9c3fefb787"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/JsDaddy/ngx-copypaste","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsDaddy%2Fngx-copypaste","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsDaddy%2Fngx-copypaste/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsDaddy%2Fngx-copypaste/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsDaddy%2Fngx-copypaste/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JsDaddy","download_url":"https://codeload.github.com/JsDaddy/ngx-copypaste/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsDaddy%2Fngx-copypaste/sbom","scorecard":{"id":75150,"data":{"date":"2025-08-11","repo":{"name":"github.com/JsDaddy/ngx-copypaste","commit":"5fea24003eeb7e901b55673300d4ce7aef739696"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Maintained","score":0,"reason":"1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 2/12 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/quality-check.yml:19","Warn: no topLevel permission defined: .github/workflows/gh-pages.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Warn: no topLevel permission defined: .github/workflows/quality-check.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gh-pages.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/JsDaddy/ngx-copypaste/gh-pages.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gh-pages.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/JsDaddy/ngx-copypaste/gh-pages.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/gh-pages.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/JsDaddy/ngx-copypaste/gh-pages.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/gh-pages.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/JsDaddy/ngx-copypaste/gh-pages.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/gh-pages.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/JsDaddy/ngx-copypaste/gh-pages.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/JsDaddy/ngx-copypaste/publish.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/JsDaddy/ngx-copypaste/publish.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/JsDaddy/ngx-copypaste/publish.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/JsDaddy/ngx-copypaste/publish.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quality-check.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/JsDaddy/ngx-copypaste/quality-check.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/quality-check.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/JsDaddy/ngx-copypaste/quality-check.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/quality-check.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/JsDaddy/ngx-copypaste/quality-check.yml/develop?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/gh-pages.yml:9"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T04:38:49.816Z","repository_id":34457980,"created_at":"2025-08-15T04:38:49.816Z","updated_at":"2025-08-15T04:38:49.816Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279184389,"owners_count":26121610,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["angular","angular-clipboard","angular-copypaste","clipboard","copypaste","ngx","ngx-clipboard","ngx-copypaste","typescript"],"created_at":"2024-10-06T02:01:05.381Z","updated_at":"2025-10-17T18:32:03.269Z","avatar_url":"https://github.com/JsDaddy.png","language":"TypeScript","readme":"\u003ca href=\"http://jsdaddy.io/img/logo.png\"\u003e\n  \u003ch1 align=\"center\"\u003eNGX COPYPASTE\u003c/h1\u003e\n\u003c/a\u003e\n\n\u003cp align=\"center\"\u003e\n  NGX COPYPASTE is the best directive to copy any content on any element\n\u003c/p\u003e\n\n[![CI](https://github.com/JsDaddy/ngx-copypaste/actions/workflows/quality-check.yml/badge.svg?branch=develop)](https://github.com/JsDaddy/ngx-copypaste/actions/workflows/main.yml)\n[![npm](https://img.shields.io/npm/v/ngx-copypaste.svg)](https://www.npmjs.com/package/ngx-copypaste)\n[![npm downloads](https://img.shields.io/npm/dt/ngx-copypaste.svg)](https://npmjs.org/ngx-copypaste)\n\n[![npm](https://img.shields.io/npm/dm/ngx-copypaste.svg)](https://www.npmjs.com/package/ngx-copypaste)\n\n[![GitHub contributors](https://img.shields.io/github/contributors/JSDaddy/ngx-copypaste.svg?style=flat)](https://github.com/JSDaddy/ngx-copypaste)\n\n[![GitHub stars](https://img.shields.io/github/stars/JSDaddy/ngx-copypaste.svg?label=GitHub%20Stars\u0026style=flat)](https://github.com/JSDaddy/ngx-copypaste)\n\nYou can also try our NGX MASK [check](https://www.npmjs.com/package/ngx-mask) it.\nYou can also try our NGX LOADER INDICATOR [check](https://www.npmjs.com/package/ngx-loader-indicator) it.\n\n### You can try live [demo](https://jsdaddy.github.io/ngx-copypaste/) with examples.\n\n## Installing\n\n## npm\n\n```bash\n$ npm install --save ngx-copypaste\n```\n\n## bun\n\n```bash\n$ bun install --save ngx-copypaste\n```\n\n## Quickstart if ngx-copypaste version \u003e= 15.0.0\n\nPay attention this version works for angular \u003e= 14.0.0\n\nImport **ngx-copypaste** directive to your standalone component\n\n```typescript\n@Component({\n  selector: 'ngx-component',\n  templateUrl: './app.component.html',\n  styleUrls: ['./app.component.scss'],\n  standalone: true,\n  imports: [\n    (...)\n    NgxCopyPasteDirective,\n    (...)\n  ],\n})\nexport class AppComponent {\n    (...)\n}\n```\n\n## Quickstart if ngx-copypaste version \u003c 15.0.0\n\nPay attention this version works for angular \u003c 15.0.0\n\nImport **ngx-copypaste** module in Angular app.\n\n```typescript\nimport {NgxCopyPasteModule} from 'ngx-copypaste'\n\n(...)\n\n@NgModule({\n  (...)\n  imports: [\n    NgxCopyPasteModule\n  ]\n  (...)\n})\n```\n\n#### Usage\n\nFrom input\n\n```html\n\u003cinput type=\"text\" ngxCopyPaste #cp=\"copy\" /\u003e\n\n\u003cbutton (click)=\"cp.copy()\"\u003eCopy\u003c/button\u003e\n```\n\nFrom any HTML tag\n\n```html\n\u003cp ngxCopyPaste #cp=\"copy\"\u003eLorem ipsum\u003c/p\u003e\n\n\u003cbutton (click)=\"cp.copy()\"\u003eCopy\u003c/button\u003e\n```\n\nFrom complex div\n\n```html\n\u003cdiv ngxCopyPaste #cp=\"copy\"\u003e\n    \u003ch1\u003eLorem ipsum\u003c/h1\u003e\n    \u003cp\u003e\n        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam rutrum augue at ante\n        sollicitudin posuere. Pellentesque congue consequat enim quis luctus.\n    \u003c/p\u003e\n    \u003cdiv\u003e\n        \u003ch2\u003eLorem ipsum\u003c/h2\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n\n\u003cbutton (click)=\"cp.copy()\"\u003eCopy\u003c/button\u003e\n```\n\nAlso you can bind it to any tag\n\n```html\n\u003cp ngxCopyPaste #cp=\"copy\"\u003eLorem ipsum\u003c/p\u003e\n\n\u003cp (click)=\"cp.copy()\"\u003eCopy\u003c/p\u003e\n```\n\nOutput success cb\n\n```html\n\u003cp ngxCopyPaste #cp=\"copy\" (successCb)=\"copy()\"\u003eLorem ipsum\u003c/p\u003e\n\n\u003cp (click)=\"cp.copy()\"\u003eCopy\u003c/p\u003e\n\npublic copy(): void { your code }\n```\n","funding_links":[],"categories":["Third Party Components"],"sub_categories":["Directives"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJsDaddy%2Fngx-copypaste","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJsDaddy%2Fngx-copypaste","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJsDaddy%2Fngx-copypaste/lists"}