Fortune NeDB Adapter
fortune-nedb package from
$ npm install fortune-nedb
Then use it with Fortune:
const fortune =const nedbAdapter =const store =
All of the options are enumerated here. Here are additional adapter-specific options:
dbPath: Path to a directory where the database is persisted to disk. Optional.
Note that the
filename option has no effect, since Fortune.js determines filenames based on type name.
In addition to the constructor options, there is also the
query function in the
find method, which accepts the query object as an argument, and may either mutate or return the query object. This allows for arbitrary queries.
This software is licensed under the MIT License.