https://github.com/sidorares/repl-co
node repl with yield support
https://github.com/sidorares/repl-co
Last synced: 7 days ago
JSON representation
node repl with yield support
- Host: GitHub
- URL: https://github.com/sidorares/repl-co
- Owner: sidorares
- License: mit
- Created: 2013-09-18T02:21:07.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-05-01T05:52:40.000Z (about 8 years ago)
- Last Synced: 2025-05-07T07:41:11.008Z (about 2 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
repl-co
=======node repl with yield support
### Example:
```
$ repl-co
> var c = require('mysql-co').createConnection({})
undefined
> (yield c.execute('select unix_timestamp() as time'))[0][0].time + (yield c.execute('select unix_timestamp() as time'))[0][0].time
2758945798
> (yield c.execute('select unix_timestamp() as time'))[0][0].time + (yield c.execute('select unix_timestamp() as time'))[0][0].time
2758945804
```