Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
12
node_modules/seq/examples/parseq.coffee
generated
vendored
Normal file
12
node_modules/seq/examples/parseq.coffee
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
fs = require 'fs'
|
||||
exec = require('child_process').exec
|
||||
Seq = require 'seq'
|
||||
|
||||
Seq()
|
||||
.seq_((next) -> exec 'whoami', next)
|
||||
.par_((next, who) -> exec('groups ' + who, next))
|
||||
.par_((next, who) -> fs.readFile(__filename, 'utf8', next))
|
||||
.seq_((next, groups, src) ->
|
||||
console.log('Groups: ' + groups.trim())
|
||||
console.log('This file has ' + src.length + ' bytes')
|
||||
)
|
||||
Reference in New Issue
Block a user