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.3.0-1
  • latest
  • 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 quickApp

Install

$ npm install universal-clipboard --save

Usage

import Clipboard from 'universal-clipboard';

// How to use it in quickapp
// import Clipboard from 'universal-clipboard/lib/quickapp;

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

}).catch(() => {

});

Clipboard.writeText('text').then(() => {

}).catch(() => {

});

Methods

readText(): Promise.<text>

Get clipboard value.

Support

weex miniApp wechatMiniprogram quickApp

Arguments
PropertyTypeDescriptionDefault
textstringget clipboard value-

writeText(text: string): Promise.<>

Set clipboard value.

Support

browser weex miniApp wechatMiniprogram quickApp

Arguments
PropertyTypeDescriptionDefault
textstringset clipboard value-

Keywords

FAQs

Package last updated on 27 Jul 2020

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