{"name":"tinyclip","version":"1.0.1","keywords":["clipboard","copy","paste"],"author":{"url":"https://github.com/tinylibs","name":"Tinylibs Maintainers"},"license":"MIT","_id":"tinyclip@1.0.1","maintainers":[{"name":"43081j","email":"43081james@gmail.com"},{"name":"florian-lefebvre","email":"contact@florian-lefebvre.dev"}],"homepage":"https://github.com/tinylibs/tinyclip#readme","bugs":{"url":"https://github.com/tinylibs/tinyclip/issues"},"dist":{"shasum":"8a3cb5bf2b049995d88b1e4b3e6606c443d0dca1","tarball":"http://registry-npm.ywwl.com/tinyclip/download/tinyclip-1.0.1.tgz","fileCount":5,"integrity":"sha512-Dufbdbi5sSm9VHDGh1DQfMPHR5yPiMBiN+aLKqAF+5D5fDsw9UughbK8MRopvd2r84+qRwveIXtLs/FAO93eiQ==","signatures":[{"sig":"MEUCIHzftrkcw8e+ysztZuiuatSROJEvod0YaWJQZ1ldTNGIAiEA2V97ESOMzX1hzlN1w4D1bB7G+yEOU39Vbt5WlsZyOac=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/tinyclip@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8347,"size":3210,"noattachment":false,"key":"/tinyclip/-/tinyclip-1.0.1.tgz"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":"^16.14.0 || >= 17.3.0"},"exports":{".":{"default":"./dist/index.js"}},"gitHead":"80d084a120c205e54e6bbf5c7c21a00e3261efd5","scripts":{"lint":"pnpm lint:format","test":"vitest run","build":"tsgo --build","format":"prettier --write .","lint:format":"prettier --check ."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","approver":{"name":"florian-lefebvre","email":"contact@florian-lefebvre.dev"},"trustedPublisher":{"id":"github","oidcConfigId":"oidc:a1e46380-e1d7-4c89-8fd8-d3eef1dada15"}},"repository":{"url":"git+https://github.com/tinylibs/tinyclip.git","type":"git"},"_npmVersion":"12.0.1","description":"A tiny utility to interact with the system clipboard.","directories":{},"_nodeVersion":"24.18.0","_hasShrinkwrap":false,"packageManager":"pnpm@10.30.1","devDependencies":{"vitest":"^4.1.9","prettier":"^3.9.4","@types/node":"^26.0.1","@vitest/coverage-v8":"^4.1.9","@typescript/native-preview":"^7.0.0-dev.20260630.1"},"_npmOperationalInternal":{"tmp":"tmp/tinyclip_1.0.1_1785222583940_0.6293511404475911","host":"s3://npm-registry-packages-npm-production"},"readme":"# tinyclip 📋\n\nA tiny cross-platform clipboard library. Uses native OS clipboard functionality on Node.js.\n\n> [!NOTE]\n> In the browser, you can use the native [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API) instead of a dependency.\n\n## Install\n\n```sh\nnpm install tinyclip\n```\n\n## Usage\n\n```js\nimport {readText, writeText} from 'tinyclip';\n\nawait writeText('hello world');\nconst text = await readText();\n```\n\n## API\n\n### `readText(): Promise<string>`\n\nReads text from the clipboard.\n\n### `writeText(text: string): Promise<void>`\n\nWrites text to the clipboard.\n\n## License\n\n[MIT](./LICENSE)\n","publish_time":1785222584042,"_cnpm_publish_time":1785222584042,"dist-tags":{"latest":"1.0.3"}}