Skip to content

tlvince/scratchdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scratchdb

Build Status

A ephemeral CouchDB-like database

'use strict'
var scratchdb = require('scratchdb')
function done (server) {
  console.log('scratchdb running on port', server.address().port)
  // => scratchdb running on port 5985
}
scratchdb(done)

Useful when you just want to spin up a throwaway CouchDB instance; no Futon/Fauxton, no auth, no persistence.

You should probably use pouchdb-server when you need more.

Usage

API

scratchdb([callback[, opts]])

A net.Server instance is passed to (an optional) callback when the server has been bound.

Additionally, pass an opts object to configure the server options.

CLI

[PORT] scratchdb
# scratchdb running at http://0.0.0.0:5985

Options

Option Description Default
port The port scratchdb binds to 5985

Author

© 2015 Tom Vincent npm@tlvince.com

License

Released under the MIT License.

About

A ephemeral CouchDB-like database

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published