This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Highland = require('highland'); | |
function addOne(x) { | |
return new Promise((resolve, reject) => resolve(x + 1)); | |
} | |
var limit = 10; | |
Highland([1,2,3,4,5]) | |
.map((x) => Highland(addOne(x))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* List all files below a given path, recursing through subdirectories. | |
* | |
* @param {String} p | |
* @param {Function} callback | |
* @api public | |
*/ | |
exports.descendants = function (p, callback) { | |
fs.stat(p, function (err, stats) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 Sep 05:08:38 - getfiltertags. submitted tags: one,two,test fail tag , 3 | |
8 Sep 05:08:38 - checking : one | |
8 Sep 05:08:38 - getfiltertags. vetted tags: , length : 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 42cb3106c2b616d0357f3f89537ff751b3dbd570 Mon Sep 17 00:00:00 2001 | |
From: Caolan McMahon <[email protected]> | |
Date: Wed, 16 Jun 2010 19:08:39 +0100 | |
Subject: [PATCH] Update path.exists to return relevant errors from fs.stat | |
The callback for path.exists now accepts two arguments, an error and | |
a boolean value which performs the same as before. The error is only | |
passed from fs.stat if it is something other than 'not found'. | |
This brings the callback in-line with the convention of returning an |