Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sidorares/repl-co
node repl with yield support
https://github.com/sidorares/repl-co
Last synced: 21 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 (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-05-01T05:52:40.000Z (over 7 years ago)
- Last Synced: 2024-04-15T00:17:30.376Z (7 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 5
- Watchers: 3
- 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
```