{"_id":"write-dir-safe","_rev":"4-8ba45ff3dddaf146abd2b0a3dd56aa70","name":"write-dir-safe","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"write-dir-safe","version":"1.0.0","description":"Create directories and their parents recursively","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/write-dir-safe","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/write-dir-safe.git"},"keywords":["write","dir","safe","fs","fs-safe","without","try","catch","directory"],"main":"./build/index.js","scripts":{"build":"bob build","commit":"bob commit","lint":"bob lint","release":"bob publish","test":"bob test"},"devDependencies":{"@bconnorwhite/bob":"^2.9.2","@types/mock-fs":"^4.10.0","@types/node":"^14.11.2","mock-fs":"^4.13.0"},"eslintConfig":{"extends":"eslint-config-bob"},"husky":{"hooks":{"commit-msg":"bob lint commit"}},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-bob"},"_id":"write-dir-safe@1.0.0","dist":{"shasum":"cd10c19d6975f8b478857264dc45e8ae707098d1","integrity":"sha512-MIJKcy0fuXZ7thQZKqx05bdbYaNiA9byGQqA/7Plam7B0gFsF7xSGEj4FsBtkNaDInu5/4X9/ZPXj0WQieEmuw==","tarball":"https://registry.npmjs.org/write-dir-safe/-/write-dir-safe-1.0.0.tgz","fileCount":7,"unpackedSize":6227,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfeAqXCRA9TVsSAnZWagAAcdsQAJeTuh6UZemUNBX1nCVC\nEITVQVSniNFDIJ45qK+uNP2BWyXGdJ/pscNPwe35ePiMCPmRlyb9tb9KORn1\nb2ept4UwMyyCJae52atrJ/IwjfxiLPil3gUpNcqTXXcyBGbbWz6mPBCK6oyA\nSZ/Cd9wN7wK3+3w540h55NFBKr5ZYg/ldqt7XirjnqwL5Fe8hYxymXp84AOD\nzP4BiEEMs1bf1ICzCPvozkJD/WNuQifxuXHsQruldZepemVI5TjN1PdRVsxR\nBjg4T22UGPrzKJHNVTq2Y6UYZU4LgL3AIPqA/99doh/FB/9ILx7xNs1wMHMM\nYrY9gjex22iiK5CBoR1gFGuptUdDl498/4IC98eMcpYShB/5lMvc3Mh5kld0\nvRBrf94bvK/2hNBI4BzI6aRkoxHLoJf2H5ypxVv7xdCIVGtELnDF+To3YbTd\nPDaYulJYSgSay3z2Vii5iX2L3bbHb1Q5/Po2SKFJyn0R3zrtKim8VWZi9hFv\nIb/sfeaeCDxeTIId5g819u2LNJCTjLomaSc/OdsD6adkQ1lH2LPxI4KA6q0Z\nznAL1V/QQ4gyn7c4VLoVjzQlJLtx4vFd07NRdHVNy9mko9Md5JCcLWoFl+3n\ncRcybvHrnTkVUakVEGaPB8ahqX+s7fZwkDXkgbYjasQG9b0n2LWXgAOoISgG\nQK5f\r\n=MHPZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIByflMQMAHu91IWzrqxziZ+uf8erzFkDg2pYrkRXorjHAiA9UXk0+aRnhgIjmwp57wKrsnbxBUfpvnPsN0Fm219ISQ=="}]},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-dir-safe_1.0.0_1601702550765_0.15937560753208824"},"_hasShrinkwrap":false},"1.0.1":{"name":"write-dir-safe","version":"1.0.1","description":"Create directories and their parents recursively","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/write-dir-safe","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/write-dir-safe.git"},"keywords":["write","dir","safe","fs","fs-safe","without","try","catch","directory"],"main":"./build/index.js","scripts":{"build":"bob build","commit":"bob commit","lint":"bob lint","release":"bob publish","test":"bob test"},"devDependencies":{"@bconnorwhite/bob":"^2.9.2","@types/mock-fs":"^4.10.0","@types/node":"^14.11.2","mock-fs":"^4.13.0","read-file-safe":"^1.0.8"},"eslintConfig":{"extends":"eslint-config-bob"},"husky":{"hooks":{"commit-msg":"bob lint commit"}},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-bob"},"_id":"write-dir-safe@1.0.1","dist":{"shasum":"db5695a76f33f7a1b28ed48d370bab099d34980a","integrity":"sha512-wnY2yzWbfawmHs6sbAOsqLf+yEPS3I+9/kRrL9zAESb56KQa7gVG8ofxtZcdIAqsb47lHPXqEMOhzXoFJkE9Pw==","tarball":"https://registry.npmjs.org/write-dir-safe/-/write-dir-safe-1.0.1.tgz","fileCount":7,"unpackedSize":6609,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfegUMCRA9TVsSAnZWagAArS8P+QGv/0y5Q9wXaw8OZiZ8\nzInBZxJDy4ze9m9IdGqA+9blTC3pqlcToioYLSonCMdL2hGKamWmgXqP25Uf\nEeqqKhalj4FugZ+4owt0tzIofbdi9RC2PHsRRx4DVhyVYuGk+/wDtTJzHCfX\nLat7tnozx855ZMgNMcuJSzAT27hxzyse+OCniMVnbmqwLzCA2N8iDeFa/yqk\nUSuZfId6/8Cisjp+W14TWITb9Y/B9+usyFgbg875T913Pbjvp1JLwMWATYdA\nk7aIx+cSm+2q673cqXu76WLnqn3N/uQRy8rHIqNn7dx8p8sxgadqC9wxJEzg\nJChR0o0qP8aLIRgo+hWM0NcCCBjTgdlB5y2iR1fJyKElmt8j23RCl2zIDYrS\nN2G1YyAlg8aHgXfq7WpDbnBbndwi4/vqqgz0sK7OrmYuu3Uf5sMSiRgY2l3a\npzhhNmnrdyARQGwEAyEA2BxO9r4ONGIsUdczPUKPUTOst8ozUO3LXmPfaTLv\n82+2Z2iEALwFIsJq4vwk47JaXA7ZwVivKkwAUzHkJWiTnL2Digy+ZsBAsbM0\no/UeynqLNF9RFS6jIfrIHbUnDPfiWLLwfxrRRJQZDYbEZ6t1CdEXK7B7QbgA\nOcborb345MyT9fAwtjxKVtBrIFporE0JgHMM7KkJv/HnRVePHJM/GH2qm6ia\naQ3Y\r\n=Nryf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDnG9eu4y/9E6mviQk4d6Kwf8unnWTSUWnuFUbkb0n1tAiEAhCwNs9Yx9jcn0GsCgMn72HW2byqaQweOZHJGDRr6VBA="}]},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-dir-safe_1.0.1_1601832203550_0.6594487246104954"},"_hasShrinkwrap":false},"2.0.0":{"name":"write-dir-safe","version":"2.0.0","description":"Create directories and their parents recursively","license":"MIT","private":false,"author":{"name":"Connor White"},"contributors":[{"name":"Connor White"}],"homepage":"https://connorwhite.org/github/write-dir-safe","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/write-dir-safe.git"},"bugs":{"url":"https://github.com/bconnorwhite/write-dir-safe/issues"},"keywords":["write","dir","safe","fs","fs-safe","without","try","catch","directory"],"type":"module","main":".auto/build/index.js","exports":"./.auto/build/index.js","types":".auto/build/index.d.ts","engines":{"node":"^14.13.1 || >=16.0.0"},"scripts":{"build":"auto build","dev":"auto dev","lint":"auto lint","prepack":"yarn build","release":"auto release","test":"auto test","typecheck":"auto typecheck"},"devDependencies":{"@types/mock-fs":"^4.13.1","@types/node":"^18.11.18","autorepo":"^0.1.9","mock-fs":"^5.2.0","read-file-safe":"^2.0.0"},"eslintConfig":{"extends":"@autosoft/eslint-config"},"jest":{"preset":"@autosoft/jest-preset"},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-auto"},"_id":"write-dir-safe@2.0.0","dist":{"shasum":"3a8ed5e3b32ca9e2d25acaa60b61cec6e130c7fd","integrity":"sha512-RGEiJl7/syYrhnH4c8rTYr8y0JUoh+6lolcNhkkJUN1t34XdSY5Q5244RG30DehAaf49fpm3rfCAaitZCVFpWA==","tarball":"https://registry.npmjs.org/write-dir-safe/-/write-dir-safe-2.0.0.tgz","fileCount":8,"unpackedSize":6473,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTdjgv/IuLQcBW6VKnAdGCxHi66pzYIVI2L1O2mVUGMwIhALNvxdS69zTld4OIQv4rtqvYez93Dy/g2NSEMutkYh5z"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjv1lvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrQg//SNhaHr0aNUV8iAlZkaKQXUFeij+tA11P/E/tD6CcEKI6HZKc\r\n8r47mB9S3RH5sWbGzgtaSchzgvvNMZ4nnwt8McEWakDxJgb7FHoqDfcIAMH1\r\ngq8PQwP5hcMKj7Z7zVn45iFhMl53EUFM40mOswAIcqx7VUyIWeyDP0F8xAj8\r\nzrmYRJOdntj+T7fX5gPcmGOIZCENjYLu0hNN+s4RkqNDKEZtW//PrtADGbCL\r\nKy1ff4QrBOSpnqkbu1UWTrT50ZR2RXujop1dFFjBMnIxmWG0ZkAHg/FMjfLi\r\n1hSR/zE4pV+g8xKkqpHLyF9FK69eppIUfRCu4DCrFiX1JVsjYuRcDaT+lNO6\r\nIrf9+dajjJWvl9CuBdgV7xQM6FrsttDnUHU9s/UzFzwPn9ISeu1RMPyf03xS\r\ns+Dn2snNk8Oqd+GTOMhXd5TZRSpAIjKzbTy5S/z2omaBacx/i7jn9U4tqPqi\r\npuDGsSZOu9vCS7LGVtC5EbBu9/kyQ/PlfKPmfiCIdTvZdqwHy5afzd+MYqWI\r\n0eVgWnsHxEkCQ/fa1nd0WA2qYLXYT94BIWiYxgFIhIifsro/Kl0dJnMpF4dj\r\nezZa7VTcp/TNfpPbPAHHwg+bhN4fMaXFdx81hY++10Bmvjp6UPQ+AvzjBtal\r\najYhNSpkbcMo7YDZku0CMTrWlDEAUt9b1+s=\r\n=kjNq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-dir-safe_2.0.0_1673484654881_0.05990100922971586"},"_hasShrinkwrap":false},"2.0.1":{"name":"write-dir-safe","version":"2.0.1","description":"Create directories and their parents recursively","license":"MIT","private":false,"author":{"name":"Connor White"},"contributors":[{"name":"Connor White"}],"homepage":"https://github.com/bconnorwhite/write-dir-safe#readme","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/write-dir-safe.git"},"bugs":{"url":"https://github.com/bconnorwhite/write-dir-safe/issues"},"keywords":["write","dir","safe","fs","fs-safe","without","try","catch","directory"],"type":"module","main":".auto/build/index.js","exports":"./.auto/build/index.js","types":".auto/build/index.d.ts","engines":{"node":"^14.13.1 || >=16.0.0"},"scripts":{"build":"auto build","dev":"auto dev","lint":"auto lint","prepack":"yarn build","release":"auto release","test":"auto test","typecheck":"auto typecheck"},"devDependencies":{"@types/mock-fs":"^4.13.1","@types/node":"^18.11.18","autorepo":"^0.1.9","mock-fs":"^5.2.0","read-file-safe":"^2.0.0"},"eslintConfig":{"extends":"@autosoft/eslint-config"},"jest":{"preset":"@autosoft/jest-preset"},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-auto"},"_id":"write-dir-safe@2.0.1","dist":{"shasum":"700dcda62571cf76ecc70ae6a299a2da49078ab2","integrity":"sha512-rL5prgKDZlPC/A1XDbAVsH3nDwKKMLPor6NcKk10zz1jN/GxyRZFrhIDUsTKrhxT/dj5fMBOZ+2uo04vVC+m7w==","tarball":"https://registry.npmjs.org/write-dir-safe/-/write-dir-safe-2.0.1.tgz","fileCount":8,"unpackedSize":6580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXLSG/pj/j+fqPgqYHaZd4A+h98tk2rjnxFGjSvQr/VAIgMNinPj/wlPHD0VPlrpVxiwJjinL6JT/XrlAMNUo2dZw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjv1mwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1HQ/+M0Wt2pfY83NNZJopxcL+yC5vzA80ep8/LD8IrPRWs/G3Z+aI\r\nETkpbO2nCRELlx2s8xqgfcul7TcBNTf70hSupiVNxyHF3Dof+gNmRuvzMc6P\r\n5HHQouXjhGyiwj2JPvpElQsjErJphM8yxuYKMxkT3PthPg3lSdpxXkZuRhsQ\r\n+vrVaUe6lgA2ZPy4ErIW0tYxsGv/jFfBheBiL1tL915bw92BeA5qHczqqiPa\r\nKjEFcLWuwypouAcujg/k2ZRERKNew2YqrYFlph1Kj80/zVCjGyEyRrTkqsDH\r\n2/+JI+4w64nA88xe/hOlG3Ynt7nEpCsWKX4yjmQnDHTJsJ++/UCzwGQ5apAN\r\nHvrzQXeVXgJOeo+rVm9dP+sztrHV8m83BrKZhX0t24oSNOy8fS96dFbafYT/\r\neB/yWJrjTgqt2JBEEEi4zT4kyZTgZQAxZIJmFXEdM0+sSb3/DlUq0eWmmkB0\r\n/jVr2+qi4WgKYXbNoM2YM4wrW8tfYTBLceslWZ3KDMUtGnqO/09XPtkRO7Hm\r\nlOZ0sIyu1RbDKIanBgEf1K72RhtlBSpCP6ClE3qR/nfWVzYdELbai7b7PKwN\r\nLTXpazoDe4s7/Vhpns6qy0bI63o0End4rwesXp/FGXw3KaTiMhaK5d5xu79F\r\n5KveW7Q2xhx6CmZcXT13ZdMvPMek5m35KG0=\r\n=SAR+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/write-dir-safe_2.0.1_1673484720482_0.3830187470315696"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-03T05:22:30.765Z","1.0.0":"2020-10-03T05:22:30.890Z","modified":"2023-01-12T00:52:00.744Z","1.0.1":"2020-10-04T17:23:23.722Z","2.0.0":"2023-01-12T00:50:55.044Z","2.0.1":"2023-01-12T00:52:00.659Z"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"description":"Create directories and their parents recursively","homepage":"https://github.com/bconnorwhite/write-dir-safe#readme","keywords":["write","dir","safe","fs","fs-safe","without","try","catch","directory"],"repository":{"type":"git","url":"git+https://github.com/bconnorwhite/write-dir-safe.git"},"author":{"name":"Connor White"},"license":"MIT","readme":"<!--BEGIN HEADER-->\n<div id=\"top\" align=\"center\">\n  <h1>write-dir-safe</h1>\n  <a href=\"https://npmjs.com/package/write-dir-safe\">\n    <img alt=\"NPM\" src=\"https://img.shields.io/npm/v/write-dir-safe.svg\">\n  </a>\n  <a href=\"https://github.com/bconnorwhite/write-dir-safe\">\n    <img alt=\"TypeScript\" src=\"https://img.shields.io/github/languages/top/bconnorwhite/write-dir-safe.svg\">\n  </a>\n  <a href=\"https://coveralls.io/github/bconnorwhite/write-dir-safe?branch=master\">\n    <img alt=\"Coverage Status\" src=\"https://img.shields.io/coveralls/github/bconnorwhite/write-dir-safe.svg?branch=master\">\n  </a>\n</div>\n\n<br />\n\n<blockquote align=\"center\">Create directories and their parents recursively.</blockquote>\n\n<br />\n\n_If I should maintain this repo, please ⭐️_\n<a href=\"https://github.com/bconnorwhite/write-dir-safe\">\n  <img align=\"right\" alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/bconnorwhite/write-dir-safe?label=%E2%AD%90%EF%B8%8F&style=social\">\n</a>\n\n_DM me on [Twitter](https://twitter.com/bconnorwhite) if you have questions or suggestions._\n<a href=\"https://twitter.com/bconnorwhite\">\n  <img align=\"right\" alt=\"Twitter\" src=\"https://img.shields.io/twitter/url?label=%40bconnorwhite&style=social&url=https%3A%2F%2Ftwitter.com%2Fbconnorwhite\">\n</a>\n\n---\n<!--END HEADER-->\n\n> Create directories and their parents recursively.\n- Returns `true` if directory now exists.\n- Returns `false` if unable to create directory.\n- Returns `undefined` on other errors (ex: permission denied) rather than throwing.\n\n## Installation\n\n```sh\nyarn add write-dir-safe\n```\n\n```sh\nnpm install write-dir-safe\n```\n\n```sh\npnpm add write-dir-safe\n```\n\n## Usage\n\n```ts\nimport { writeDir, writeDirSync, Options } from \"write-dir-safe\";\n\nfunction writeDir(path: string, options: Options): Promise<boolean | undefined>;\n\nfunction writeDirSync(path: string, options: Options): boolean | undefined;\n\ntype Options = {\n  /**\n   * Recursively create parent directories as well. Default: `true`\n   */\n  recursive?: boolean;\n};\n```\n<!--BEGIN FOOTER-->\n\n<br />\n\n<h2>Dev Dependencies</h2>\n\n- [@types/mock-fs](https://www.npmjs.com/package/@types/mock-fs): TypeScript definitions for mock-fs\n- [@types/node](https://www.npmjs.com/package/@types/node): TypeScript definitions for Node.js\n- [autorepo](https://www.npmjs.com/package/autorepo): Autorepo abstracts away your dev dependencies, providing a single command to run all of your scripts.\n- [mock-fs](https://www.npmjs.com/package/mock-fs): A configurable mock file system.  You know, for testing.\n- [read-file-safe](https://www.npmjs.com/package/read-file-safe): Read files without try catch\n\n<br />\n\n<h2 id=\"license\">License <a href=\"https://opensource.org/licenses/MIT\"><img align=\"right\" alt=\"license\" src=\"https://img.shields.io/npm/l/write-dir-safe.svg\"></a></h2>\n\n[MIT](https://opensource.org/licenses/MIT) - _MIT License_\n<!--END FOOTER-->\n\n<br />\n\n## Related Packages\n\n- [fs-safe](https://www.npmjs.com/package/fs-safe): A simple fs wrapper that doesn't throw\n- [read-dir-safe](https://www.npmjs.com/package/read-dir-safe): Read directories recursively or non-recursively\n- [remove-dir-safe](https://www.npmjs.com/package/remove-dir-safe): Remove directories recursively or non-recursively\n- [read-file-safe](https://www.npmjs.com/package/read-file-safe): Read files without try catch\n- [write-file-safe](https://www.npmjs.com/package/write-file-safe): Write files, and parent directories if necessary\n- [remove-file-safe](https://www.npmjs.com/package/remove-file-safe): Remove a file without try catch\n","readmeFilename":"README.md","contributors":[{"name":"Connor White"}],"bugs":{"url":"https://github.com/bconnorwhite/write-dir-safe/issues"}}