{"id":15018586,"url":"https://github.com/eddyverbruggen/nativescript-clipboard","last_synced_at":"2025-10-23T19:30:55.970Z","repository":{"id":31811831,"uuid":"35378463","full_name":"EddyVerbruggen/nativescript-clipboard","owner":"EddyVerbruggen","description":":clipboard: NativeScript plugin to copy stuff to the device clipboard, and read from it again","archived":false,"fork":false,"pushed_at":"2023-01-14T00:54:07.000Z","size":3462,"stargazers_count":40,"open_issues_count":18,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-30T20:30:32.575Z","etag":null,"topics":["clipboard","nativescript","nativescript-plugin","pasteboard"],"latest_commit_sha":null,"homepage":"","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/EddyVerbruggen.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":"2015-05-10T16:21:41.000Z","updated_at":"2024-05-30T15:53:51.000Z","dependencies_parsed_at":"2023-01-14T20:00:33.812Z","dependency_job_id":null,"html_url":"https://github.com/EddyVerbruggen/nativescript-clipboard","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EddyVerbruggen%2Fnativescript-clipboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EddyVerbruggen%2Fnativescript-clipboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EddyVerbruggen%2Fnativescript-clipboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EddyVerbruggen%2Fnativescript-clipboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EddyVerbruggen","download_url":"https://codeload.github.com/EddyVerbruggen/nativescript-clipboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237877021,"owners_count":19380344,"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":["clipboard","nativescript","nativescript-plugin","pasteboard"],"created_at":"2024-09-24T19:52:09.041Z","updated_at":"2025-10-23T19:30:55.466Z","avatar_url":"https://github.com/EddyVerbruggen.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NativeScript Clipboard\n\n[![Build Status][build-status]][build-url]\n[![NPM version][npm-image]][npm-url]\n[![Downloads][downloads-image]][npm-url]\n[![TotalDownloads][total-downloads-image]][npm-url]\n[![Twitter Follow][twitter-image]][twitter-url]\n\n[build-status]:https://travis-ci.org/EddyVerbruggen/nativescript-clipboard.svg?branch=master\n[build-url]:https://travis-ci.org/EddyVerbruggen/nativescript-clipboard\n[npm-image]:http://img.shields.io/npm/v/nativescript-clipboard.svg\n[npm-url]:https://npmjs.org/package/nativescript-clipboard\n[downloads-image]:http://img.shields.io/npm/dm/nativescript-clipboard.svg\n[total-downloads-image]:http://img.shields.io/npm/dt/nativescript-clipboard.svg?label=total%20downloads\n[twitter-image]:https://img.shields.io/twitter/follow/eddyverbruggen.svg?style=social\u0026label=Follow%20me\n[twitter-url]:https://twitter.com/eddyverbruggen\n\nA NativeScript plugin to copy and paste data from and to the device clipboard.\n\n\u003e 💡 Plugin version 2.0.0+ is compatible with NativeScript 7+. If you need to target older NativeScript versions, please stick to plugin version 1.2.0.\n\n## Installation\nRun the following command from the root of your project:\n\n```\ntns plugin add nativescript-clipboard\n```\n\n## Usage\n\n\u003e TIP: Check out the [demo app](/demo) for TypeScript examples.\n\nTo use this plugin you must first require() it:\n\n```js\nvar clipboard = require(\"nativescript-clipboard\");\n```\n\n### setText\n\n```js\n  clipboard.setText(\"Something relevant to put on the clipboard.\").then(function() {\n      console.log(\"OK, copied to the clipboard\");\n  })\n```\n\n### setTextSync\nThis is the synchronous version of `setText`, available since plugin version 1.2.0.\n\n```js\n  clipboard.setTextSync(\"Something relevant to put on the clipboard.\");\n```\n\n### getText\n\n```js\n  clipboard.getText().then(function(content) {\n      console.log(\"Read from clipboard: \" + content);\n  })\n```\n\n### getTextSync\nThis is the synchronous version of `getText`, available since plugin version 1.2.0.\n\n```js\n  var content = clipboard.getText();\n  console.log(\"Read from clipboard: \" + content);\n```\n\n## Future work\nImplement support for storing data (image, etc) on the clipboard. Open an issue or PR in case you like to have that.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddyverbruggen%2Fnativescript-clipboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feddyverbruggen%2Fnativescript-clipboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddyverbruggen%2Fnativescript-clipboard/lists"}