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