Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "copyr", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Copy text to the clipboard.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "babel src --presets babel-preset-es2015 --out-dir dist", | ||
"prepublish": "npm run build" | ||
}, | ||
@@ -24,3 +26,7 @@ "repository": { | ||
}, | ||
"homepage": "https://github.com/Xyfir/copyr#readme" | ||
"homepage": "https://github.com/Xyfir/copyr#readme", | ||
"devDependencies": { | ||
"babel-cli": "^6.24.1", | ||
"babel-preset-es2015": "^6.24.1" | ||
} | ||
} |
Copy text to the clipboard. | ||
A simple module that lets you copy text to the clipboard. copyr uses `document.execCommand('copy')` and there are no fallbacks or unnecessary code. | ||
Only uses `document.execCommand('copy')`. There are no fallbacks or other unnecessary code. | ||
# Usage | ||
Used by [Ptorx](https://ptorx.com/) and other projects in the [Xyfir Network](https://xyfir.com/). | ||
@@ -7,0 +7,0 @@ ```js |
2469
5
12
2