diff --git a/.travis.yml b/.travis.yml index 60c0d25..3a18f25 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,5 @@ os: - osx - windows node_js: - - '8' - '10' - node diff --git a/index.js b/index.js index 41d4ab6..0094f96 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,6 @@ var inherits = require('util').inherits var RandomAccess = require('random-access-storage') var fs = require('fs') -var mkdirp = require('mkdirp') var path = require('path') var constants = fs.constants || require('constants') @@ -35,7 +34,7 @@ inherits(RandomAccessFile, RandomAccess) RandomAccessFile.prototype._open = function (req) { var self = this - mkdirp(path.dirname(this.filename), ondir) + fs.mkdir(path.dirname(this.filename), { recursive: true }, ondir) function ondir (err) { if (err) return req.callback(err) diff --git a/package.json b/package.json index e3edaaa..a419911 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,6 @@ }, "browser": "./browser.js", "dependencies": { - "mkdirp": "^0.5.1", "random-access-storage": "^1.1.1" }, "devDependencies": { diff --git a/test.js b/test.js index a5d4be7..a6d7b69 100644 --- a/test.js +++ b/test.js @@ -3,13 +3,12 @@ var tape = require('tape') var os = require('os') var path = require('path') var fs = require('fs') -var mkdirp = require('mkdirp') var isWin = process.platform === 'win32' var tmp = path.join(os.tmpdir(), 'random-access-file-' + process.pid + '-' + Date.now()) var i = 0 -mkdirp.sync(tmp) +fs.mkdirSync(tmp, { recursive: true }) tape('write and read', function (t) { var file = raf(gen()) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy