better-scanner
Advanced tools
Comparing version 1.5.3 to 2.0.0
11
index.js
@@ -30,3 +30,3 @@ var os = require('os'); | ||
var suggestions = []; | ||
cpp([exports.bin, '--suggest', dir], '\n', function (line) { | ||
cpp([exports.bin, '--suggest', dir], '\n', function (line, cb) { | ||
// line follows specific format: score ctime mtime atime path | ||
@@ -41,2 +41,3 @@ var space = line.indexOf(' '); | ||
}) | ||
cb(); | ||
}, function () { | ||
@@ -68,3 +69,3 @@ cb(suggestions); | ||
exports.scanFast = function (path, process, cb) { | ||
cpp([exports.bin, '--fast', path], '\n', function (line) { | ||
cpp([exports.bin, '--fast', path], '\n', function (line, cb) { | ||
// line follows specific format: inode isDir path | ||
@@ -79,3 +80,3 @@ var space = line.indexOf(' '); | ||
isDir: isDir | ||
}) | ||
}, cb) | ||
}, cb || function(){}) | ||
@@ -91,3 +92,3 @@ } | ||
var invis = includeInvisible ? '1' : '0'; | ||
cpp([exports.bin, '--stat', invis, path], '\n', function (line) { | ||
cpp([exports.bin, '--stat', invis, path], '\n', function (line, cb) { | ||
// line follows specific format: inode createdTime modifiedTime accessedTime isDir isInvisible path | ||
@@ -112,4 +113,4 @@ var tokens = line.split(' '); | ||
path: path, | ||
}) | ||
}, cb) | ||
}, cb || function(){}) | ||
} |
{ | ||
"name": "better-scanner", | ||
"version": "1.5.3", | ||
"version": "2.0.0", | ||
"description": "Fast way to scan a directory and get all of the inodes", | ||
"main": "index.js", | ||
"dependencies": { | ||
"child-process-parser": "^1.0.0", | ||
"child-process-parser": "^2.0.0", | ||
"clusters": "0.0.4" | ||
@@ -9,0 +9,0 @@ }, |
12579
103
+ Addedchild-process-parser@2.0.0(transitive)
- Removedchild-process-parser@1.0.0(transitive)
Updatedchild-process-parser@^2.0.0