git ssb

0+

jake / state-copy



Commit 473bacd305d411e4d75fd5db4129cb6d3b8fd4d1

update readme

jake committed on 7/5/2017, 11:44:16 PM
Parent: 6205b5ba91df5e1233ab07218ee4b67bd6425d74

Files changed

README.mdchanged
package.jsonchanged
README.mdView
@@ -8,9 +8,14 @@
88
99 ```js
1010 var stateCopy = require('state-copy')
1111
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 +})
1318 ```
1419
1520 what gets copied to clipboard
1621
package.jsonView
@@ -1,7 +1,7 @@
11 {
22 "name": "state-copy",
3- "version": "1.0.2",
3 + "version": "1.0.3",
44 "description": "takes an object as input then serializes it as JSON and copies it to your clipboard",
55 "main": "index.js",
66 "author": " <jake @o91tsjBgL0l0zs475aRWYSAXFxvirZS7VrXmirY/msI=.ed25519>",
77 "license": "MIT",

Built with git-ssb-web