pax_global_header00006660000000000000000000000064126644552250014525gustar00rootroot0000000000000052 comment=1be2c567b32b44f5e5a1e46c4e2bbfa6cbed09e1 mkdirp-then-1.2.0/000077500000000000000000000000001266445522500137475ustar00rootroot00000000000000mkdirp-then-1.2.0/.gitignore000066400000000000000000000000561266445522500157400ustar00rootroot00000000000000 .DS_Store* *.log *.gz node_modules coverage mkdirp-then-1.2.0/.travis.yml000066400000000000000000000002331266445522500160560ustar00rootroot00000000000000node_js: - "0.10" - "0.11" language: node_js script: "npm run test-travis" after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls" mkdirp-then-1.2.0/History.md000066400000000000000000000002501266445522500157270ustar00rootroot00000000000000 1.1.1 / 2015-12-31 ================== * Update to the latest version of mkdirp 1.1.0 / 2015-07-10 ================== * index: Support mkdirp's "mode" parameter mkdirp-then-1.2.0/LICENSE000066400000000000000000000021131266445522500147510ustar00rootroot00000000000000 The MIT License (MIT) Copyright (c) 2014 Jonathan Ong me@jongleberry.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. mkdirp-then-1.2.0/README.md000066400000000000000000000026211266445522500152270ustar00rootroot00000000000000 # mkdirp-then [![NPM version][npm-image]][npm-url] [![Build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] [![Dependency Status][david-image]][david-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url] [![Gittip][gittip-image]][gittip-url] [npm-image]: https://img.shields.io/npm/v/mkdirp-then.svg?style=flat-square [npm-url]: https://npmjs.org/package/mkdirp-then [github-tag]: http://img.shields.io/github/tag/fs-utils/mkdirp-then.svg?style=flat-square [github-url]: https://github.com/fs-utils/mkdirp-then/tags [travis-image]: https://img.shields.io/travis/fs-utils/mkdirp-then.svg?style=flat-square [travis-url]: https://travis-ci.org/fs-utils/mkdirp-then [coveralls-image]: https://img.shields.io/coveralls/fs-utils/mkdirp-then.svg?style=flat-square [coveralls-url]: https://coveralls.io/r/fs-utils/mkdirp-then?branch=master [david-image]: http://img.shields.io/david/fs-utils/mkdirp-then.svg?style=flat-square [david-url]: https://david-dm.org/fs-utils/mkdirp-then [license-image]: http://img.shields.io/npm/l/mkdirp-then.svg?style=flat-square [license-url]: LICENSE.md [downloads-image]: http://img.shields.io/npm/dm/mkdirp-then.svg?style=flat-square [downloads-url]: https://npmjs.org/package/mkdirp-then [gittip-image]: https://img.shields.io/gittip/jonathanong.svg?style=flat-square [gittip-url]: https://www.gittip.com/jonathanong/ mkdirp-then-1.2.0/index.js000066400000000000000000000004071266445522500154150ustar00rootroot00000000000000 var _mkdirp = require('mkdirp') var Promise = require('any-promise') module.exports = function (dir, mode) { return new Promise(function (resolve, reject) { _mkdirp(dir, mode, function (err) { if (err) reject(err) else resolve() }) }) } mkdirp-then-1.2.0/package.json000066400000000000000000000015731266445522500162430ustar00rootroot00000000000000{ "name": "mkdirp-then", "description": "mkdirp as promised", "version": "1.2.0", "author": { "name": "Jonathan Ong", "email": "me@jongleberry.com", "url": "http://jongleberry.com", "twitter": "https://twitter.com/jongleberry" }, "license": "MIT", "repository": "fs-utils/mkdirp-then", "dependencies": { "any-promise": "^1.1.0", "mkdirp": "^0.5.0" }, "devDependencies": { "bluebird": "^3.0.0", "rimraf": "^2.0.0", "istanbul": "^0.4.2", "mocha": "^2.0.0" }, "scripts": { "test": "mocha --reporter spec", "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot", "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot" }, "keywords": [ "mkdirp", "then", "thenable", "co", "fs", "promise" ], "files": [ "index.js" ] } mkdirp-then-1.2.0/test/000077500000000000000000000000001266445522500147265ustar00rootroot00000000000000mkdirp-then-1.2.0/test/index.js000066400000000000000000000011461266445522500163750ustar00rootroot00000000000000 var fs = require('fs') var path = require('path') var assert = require('assert') var mkdirp = require('..') var build = path.resolve('build') try { fs.rmdirSync(build) } catch (err) {} describe('mkdirp().then()', function () { afterEach(function(){ fs.rmdirSync(build) }) it('should work', function (done) { return mkdirp(build).then(function () { fs.statSync(build) done() }) }) it('should use "mode"', function (done) { mkdirp(build, 0600).then(function(){ var stats = fs.statSync(build) assert.equal(stats.mode & 0777, 0600) done() }) }) })