Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

universal-clipboard

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

universal-clipboard

clipboard ability to achieve.

  • 1.0.1
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

universal-clipboard npm

clipboard ability to achieve.

Support

browser weex miniApp wechatMiniprogram

Install

$ npm install universal-clipboard --save

Usage

import Clipboard from 'universal-clipboard';

Clipboard.readText().then(text => {

}).catch(() => {

});
// Web side is not supported
Clipboard.writeText('text').then(() => {

}).catch(() => {

});

Methods

readText(): Promise.<text>

Get clipboard value.

Arguments
PropertyTypeDescriptionDefault
textstringget clipboard value-

writeText(text: string): Promise.<>

Set clipboard value (Web side is not supported).

Support

weex miniApp wechatMiniprogram

Arguments
PropertyTypeDescriptionDefault
textstringset clipboard value-

Keywords

FAQs

Package last updated on 17 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc