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

walkdir

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

walkdir - npm Package Compare versions

Comparing version 0.0.5 to 0.0.7

2

package.json
{
"name": "walkdir",
"description": "Find files simply. Walks a directory tree emitting events based on what it finds. Presents a familliar callback/emitter/a+sync interface. Walk a tree of any depth.",
"version": "0.0.5",
"version": "0.0.7",
"author": "Ryan Day <soldair@gmail.com>",

@@ -6,0 +6,0 @@ "keywords": [

[![Build Status](https://secure.travis-ci.org/soldair/node-walkdir.png)](http://travis-ci.org/soldair/node-walkdir)
## walkdir

@@ -4,0 +4,0 @@

var EventEmitter = require('events').EventEmitter,
fs = require('fs'),
_path = require('path');
_path = require('path'),
sep = _path.sep||'/';// 0.6.x
module.exports = walkdir;

@@ -9,6 +11,7 @@

walkdir.sync = function(file,options){
walkdir.sync = function(path,options,cb){
if(typeof options == 'function') cb = options;
options = options || {};
options.sync = true;
return walkdir(file,options);
return walkdir(path,options,cb);

@@ -124,5 +127,5 @@ };

if(path == '/') path='';
if(path == sep) path='';
for(var i=0,j=files.length;i<j;i++){
statter(path+'/'+files[i],false,(depth||0)+1);
statter(path+sep+files[i],false,(depth||0)+1);
}

@@ -129,0 +132,0 @@

Sorry, the diff of this file is not supported yet

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