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

git-node-fs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-node-fs - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

16

lib/node-fs.js
"use strict";
var nodeFs = require("fs");
var nodePath = require("path");
var mkdirp = require("mkdirp");

@@ -136,1 +135,16 @@ // Implements the fs interface required by js-git/fs-db

}
function mkdirp(path, callback) {
nodeFs.mkdir(path, function (err) {
if (err) {
if (err.code === "ENOENT") return mkdirp(dirname(path), function (err) {
if (err) return callback(err);
nodeFs.mkdir(path, callback);
});
if (err.code === "EEXIST") return callback();
return callback(err);
}
callback();
});
}

7

package.json

@@ -8,3 +8,3 @@ {

],
"version": "0.0.1",
"version": "0.0.2",
"main": "lib/node-fs.js",

@@ -22,6 +22,3 @@ "scripts": {

},
"homepage": "https://github.com/creationix/git-node-fs",
"dependencies": {
"mkdirp": "git://github.com/substack/node-mkdirp.git#0.5.0"
}
"homepage": "https://github.com/creationix/git-node-fs"
}
var assert = require("assert");
var path = require("path");
var fs = require("./git-node-fs");
var fs = require("./lib/node-fs");
var nodeFs = require("fs");

@@ -6,0 +6,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