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

quick-methods

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quick-methods - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

dist/quick-methods.js

34

lib/index.js

@@ -1,35 +0,5 @@

function copy(string) {
import StringM from './String'
if (typeof string !== 'string') {
console.error('Please enter a string parameter')
return false
}
let input = null
input = document.getElementById('quick-input-select')
if (input === null) {
input = document.createElement('input')
input.type = 'text'
input.id = 'quick-input-select'
}
input.style.left = "-1000px";
input.style.position = "absolute";
document.body.appendChild(input)
input.value = string
input.select()
if (document.execCommand) {
return document.execCommand('copy')
} else {
console.error('Current browsers do not support exeCommand, please use chrome')
}
return false
}
export default {
copy
...StringM
}
{
"name": "quick-methods",
"version": "0.0.2",
"version": "0.0.3",
"description": "",

@@ -13,3 +13,3 @@ "main": "index.js",

"library": "webpack",
"prepublish": "npm run library",
"prepublish": "npm run library && npm version patch",
"dev": "webpack-dev-server --config webpack.config.dev.js"

@@ -16,0 +16,0 @@ },

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