{"_id":"mongodb-dbpath","_rev":"122-eb6a6c900a706d8ca14042f557ef4c06","name":"mongodb-dbpath","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"mongodb-dbpath","version":"0.0.1","keywords":["mongodb","mongodb.js"],"author":{"url":"http://imlucas.com","name":"Lucas Hrabovsky","email":"hrabovsky.lucas@gmail.com"},"license":"Apache-2.0","_id":"mongodb-dbpath@0.0.1","maintainers":[{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"}],"homepage":"http://github.com/mongodb-js/mongodb-dbpath","bugs":{"url":"https://github.com/mongodb-js/mongodb-dbpath/issues"},"bin":{"mongodb-dbpath":"./bin/mongodb-dbpath.js"},"dist":{"shasum":"e0132c677b1b9dc830045116d18adb7f6924f175","tarball":"https://registry.npmjs.org/mongodb-dbpath/-/mongodb-dbpath-0.0.1.tgz","integrity":"sha512-JljM2Gci3LQgECY4Wnp8tRx6eDNSoTnqiz4TIaOfqLuPr3SAbSdZEAQomHniH8DQJpn97gxdYkW/XomxYPZM2w==","signatures":[{"sig":"MEQCIHZ/BrJMLcXxC+qQa5mYpSvRd8iwlnj/K3C8bvFB7GhFAiBH+pZMmz4cFLTCIAYBM2XsdS4vEuAZWrOnLLDuEgz4Qw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","check":{"ignore":["coverage/{*,**/*}"],"entries":["bin/*.js"]},"_shasum":"e0132c677b1b9dc830045116d18adb7f6924f175","gitHead":"523d54caaaf8a87c90f4f600abf21d6223907ea3","scripts":{"ci":"mocha","test":"mocha","check":"mongodb-js-precommit"},"_npmUser":{"name":"imlucas","email":"hrabovsky.lucas@gmail.com"},"precommit":["check","test"],"repository":{"url":"git://github.com/mongodb-js/mongodb-dbpath.git","type":"git"},"_npmVersion":"2.12.1","description":"Get a path for --dbpath that's writeable for the current user and mkdirp it.","directories":{},"_nodeVersion":"0.12.5","dependencies":{"async":"^1.4.0","debug":"^2.1.1","mkdirp":"^0.5.1","minimist":"^1.1.1","untildify":"^1.0.0"},"devDependencies":{"mocha":"^2.1.0","pre-commit":"^1.0.10","mongodb-js-precommit":"^0.1.3","eslint-config-mongodb-js":"^0.1.5"}}},"time":{"created":"2015-07-24T11:12:11.529Z","modified":"2026-07-15T15:35:11.877Z","0.0.1":"2015-07-24T11:12:11.529Z"},"bugs":{"url":"https://github.com/mongodb-js/mongodb-dbpath/issues"},"author":{"url":"http://imlucas.com","name":"Lucas Hrabovsky","email":"hrabovsky.lucas@gmail.com"},"license":"Apache-2.0","homepage":"http://github.com/mongodb-js/mongodb-dbpath","keywords":["mongodb","mongodb.js"],"repository":{"url":"git://github.com/mongodb-js/mongodb-dbpath.git","type":"git"},"description":"Get a path for --dbpath that's writeable for the current user and mkdirp it.","maintainers":[{"email":"satya@mongodb.com","name":"satyasinha"},{"email":"kristina.stefanova@mongodb.com","name":"kristina.stefano"},{"email":"nathan.smyth@10gen.com","name":"jarjee"},{"email":"iteng@mongodb.com","name":"devtoolsbot"},{"email":"james.wang@mongodb.com","name":"mongo-j"},{"email":"neal.beeken@mongodb.com","name":"nbbeeken"},{"email":"dbx-node@mongodb.com","name":"dbx-node"},{"email":"devtools-npm-user@mongodb.com","name":"devtools-npm-user"},{"email":"hrabovsky.lucas@gmail.com","name":"imlucas"},{"email":"dana.groff+mongodb-js@mongodb.com","name":"mongodb-js-user"}],"readme":"# mongodb-dbpath [![][npm_img]][npm_url] [![][travis_img]][travis_url] [![][appveyor_img]][appveyor_url] [![][gitter_img]][gitter_url]\n\n> Get a path for `--dbpath` that's writeable for the current user and mkdirp it.\n\n## Installation\n\n```\n# For use in other modules\nnpm install --save mongodb-dbpath\n\n# For use from cli\nnpm install -g mongodb-dbpath\n```\n\n## Usage\n\n```\nUsage: mongodb-dbpath <name>\n\nGet a path for --dbpath that's writeable for the current user and mkdirp it.\n\nUsage:\n  mongodb-dbpath my-db\n  # On your laptop `~/.mongodb/data/my-db`\n\n  mongodb-dbpath my-db\n  # On travis `process.cwd() + /.mongodb/data/my-db`\n\n  mongodb-dbpath my-db\n  # On appveyor `process.env.LOCALAPPDATA + \\.mongodb\\data\\my-db`\n\nOptions:\n  --debug              Enable debug messages.\n  -h --help            Show this screen.\n  --version            Show version.\n```\n\n## API\n\n```javascript\nvar dbpath = require('mongodb-dbpath');\ndbpath(opts, function done (err, res) { })\n```\n#### dbpath(opts, callback)\n\n##### opts\n\n**Required**\n\n`name` - *String*\nSubdirectory name.\n\n##### callback\n\n`err` - *Error*\nContains errors if no search options are writeable which would be very strange.\n\n`res` - *String*\nPath you can pass to `--dbpath`.\n\n## License\n\nApache 2.0\n\n[travis_img]: https://secure.travis-ci.org/mongodb-js/mongodb-dbpath.svg?branch=master\n[travis_url]: https://travis-ci.org/mongodb-js/mongodb-dbpath\n[npm_img]: https://img.shields.io/npm/v/mongodb-dbpath.svg\n[npm_url]: https://www.npmjs.org/package/mongodb-dbpath\n[appveyor_img]: https://ci.appveyor.com/api/projects/status/voa841j5ke8jtpfh?svg=true\n[appveyor_url]: https://ci.appveyor.com/project/imlucas/mongodb-dbpath\n[gitter_img]: https://badges.gitter.im/Join%20Chat.svg\n[gitter_url]: https://gitter.im/mongodb-js/mongodb-js\n","readmeFilename":"README.md"}