Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
choo-expose
Advanced tools
Expose a choo instance on the window
var expose = require('choo-expose')
var choo = require('choo')
var app = choo()
app.use(expose())
console.log(window.choo.state)
window.choo.emit('foo')
window.choo.on('foo', function (data) {
console.log('foo called', data)
})
window.choo.log
// => table view of history
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:
window.addEventListener('keyup', function (e) {
// press 'c' to copy current state to clipboard
if (e.keyCode === 67) {
window.choo.copy()
}
})
window.addEventListener('keyup', function (e) {
// press 'c' to copy current state at a specific path
if (e.keyCode === 67) {
window.choo.copy('state.foo.bar')
}
})
// also works with nested paths such as:
var object = { hello: { world: { lorem: 'ipsum' } } }
window.choo.copy('hello.world.lorem', object)
// will copy 'ipsum' to clipboard
// and objects:
window.choo.copy({cool: 'hey'})
// will copy {'cool': 'hey'} to clipboard
FAQs
Expose a choo instance on the window
We found that choo-expose demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.