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

batchdir

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

batchdir - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

4

CHANGELOG.md

@@ -0,3 +1,7 @@

0.0.2 / 2012-08-22
------------------
* Fixed bug that made a single string arg act as an array.
0.0.1 / 2012-08-22
------------------
* Initial release.

8

lib/batchdir.js
var fs = require('fs-extra')
, batch = require('batchflow');
, batch = require('batchflow')
, util = require('util');

@@ -51,3 +52,6 @@ function BatchDir(dirs) {

if (arguments.length === 1)
return new BatchDir(dirs);
if (util.isArray(arguments[0]))
return new BatchDir(dirs);
else
return new BatchDir([dirs]);
else

@@ -54,0 +58,0 @@ return new BatchDir(Array.prototype.slice.call(arguments, 0));

{
"name": "batchdir",
"version": "0.0.1",
"version": "0.0.2",
"description": "Batch create directories or delete them.",

@@ -5,0 +5,0 @@ "homepage": [

@@ -59,3 +59,15 @@ var testutil = require('testutil')

test('create() - with single string arg', function(done) {
var dir = path.join(TEST_DIR, 'x1');
F (fs.existsSync(dir))
batchdir(dir).create (function(err) {
F (err)
T (fs.existsSync(dir))
done()
})
})
test('remove()', function(done) {

@@ -62,0 +74,0 @@ var dirs = [

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