Commit 473bacd305d411e4d75fd5db4129cb6d3b8fd4d1
update readme
jake committed on 7/5/2017, 11:44:16 PMParent: 6205b5ba91df5e1233ab07218ee4b67bd6425d74
Files changed
README.md | changed |
package.json | changed |
README.md | ||
---|---|---|
@@ -8,9 +8,14 @@ | ||
8 | 8 … | |
9 | 9 … | ```js |
10 | 10 … | var stateCopy = require('state-copy') |
11 | 11 … | |
12 | -stateCopy({wow: 'cool'}) | |
12 … | +window.addEventListener('keyup', function (e) { | |
13 … | + // press 'c' to copy current state to clipboard | |
14 … | + if (e.keyCode === 67) { | |
15 … | + stateCopy({wow: 'cool'}) | |
16 … | + } | |
17 … | +}) | |
13 | 18 … | ``` |
14 | 19 … | |
15 | 20 … | what gets copied to clipboard |
16 | 21 … |
package.json | ||
---|---|---|
@@ -1,7 +1,7 @@ | ||
1 | 1 … | { |
2 | 2 … | "name": "state-copy", |
3 | - "version": "1.0.2", | |
3 … | + "version": "1.0.3", | |
4 | 4 … | "description": "takes an object as input then serializes it as JSON and copies it to your clipboard", |
5 | 5 … | "main": "index.js", |
6 | 6 … | "author": " <jake @o91tsjBgL0l0zs475aRWYSAXFxvirZS7VrXmirY/msI=.ed25519>", |
7 | 7 … | "license": "MIT", |
Built with git-ssb-web