fortune-nedb-uuid
v1.0.7
Published
This is a fork of the NeDB adapter for Fortune. This uses UUID for the identifiers, instead of ObjectId.
Readme
Fortune NeDB Adapter (with UUID v4)
This is NeDB adapter for Fortune. This fork replaces ObjectId identifiers, with UUID (v4). Originally forked from NeDB
Usage
Install the fortune-nedb-uuid package from npm:
$ npm install fortune-nedb-uuidThen use it with Fortune:
import fortune from 'fortune'
import nedbAdapter from 'fortune-nedb-uuid'
const store = fortune.create({
adapter: { type: nedbAdapter }
})Options
All of the options are enumerated here. Here are adapter-specific options:
dbPath: Path to a directory where the database is persisted to disk. Optional.
Note that the filename option has no effect.
License
This software is licensed under the MIT License.
