Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

better-scanner

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-scanner - npm Package Compare versions

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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc