This is NeDB adapter for Fortune. This fork replaces ObjectId identifiers, with UUID (v4). Originally forked from NeDB
Install the fortune-nedb-uuid
package from npm
:
$ npm install fortune-nedb-uuid
Then use it with Fortune:
import fortune from 'fortune'
import nedbAdapter from 'fortune-nedb-uuid'
const store = fortune.create({
adapter: { type: nedbAdapter }
})
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.
This software is licensed under the MIT License.