choo-expose
Expose a choo instance on the window
Usage
var expose = var choo = var app = app consolewindowchoowindowchoo windowchoolog// => table view of history
API
instance = expose()
Create a new choo-expose
instance.
window.choo.state
Get the current state.
window.choo.log
window.choo.history
Get an overview of the most recent events.
window.choo.copy
Serialize an object into JSON and copy it to the clipboard. Must be called in response to a user gesture event, like click or keyup.
Example:
copy whole choo state to clipboard
window
copy choo state at a specific path
window
// also works with nested paths such as:var object = hello: world: lorem: 'ipsum' windowchoo// will copy 'ipsum' to clipboard // and objects:windowchoo// will copy {'cool': 'hey'} to clipboard