Socket
Socket
Sign inDemoInstall

mongodb-dbpath

Package Overview
Dependencies
7
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mongodb-dbpath

Get a path for --dbpath that's writeable for the current user and mkdirp it.


Version published
Weekly downloads
3.5K
increased by9.03%
Maintainers
1
Install size
278 kB
Created
Weekly downloads
 

Readme

Source

mongodb-dbpath

Get a path for --dbpath that's writeable for the current user and mkdirp it.

Installation

# For use in other modules
npm install --save mongodb-dbpath

# For use from cli
npm install -g mongodb-dbpath

Usage

Usage: mongodb-dbpath <name>

Get a path for --dbpath that's writeable for the current user and mkdirp it.

Usage:
  mongodb-dbpath my-db
  # On your laptop `~/.mongodb/data/my-db`

  mongodb-dbpath my-db
  # On travis `process.cwd() + /.mongodb/data/my-db`

  mongodb-dbpath my-db
  # On appveyor `process.env.LOCALAPPDATA + \.mongodb\data\my-db`

Options:
  --debug              Enable debug messages.
  -h --help            Show this screen.
  --version            Show version.

API

var dbpath = require('mongodb-dbpath');
dbpath(opts, function done (err, res) { })
dbpath(opts, callback)
opts

Required

name - String Subdirectory name.

callback

err - Error Contains errors if no search options are writeable which would be very strange.

res - String Path you can pass to --dbpath.

License

Apache 2.0

Keywords

FAQs

Last updated on 24 Jul 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc