{"id":20199932,"url":"https://github.com/fortunejs/fortune-nedb","last_synced_at":"2025-07-04T12:07:26.851Z","repository":{"id":57241007,"uuid":"40759894","full_name":"fortunejs/fortune-nedb","owner":"fortunejs","description":"NeDB adapter for Fortune.","archived":false,"fork":false,"pushed_at":"2017-09-14T06:59:11.000Z","size":32,"stargazers_count":10,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T16:37:01.467Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fortunejs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-15T13:03:50.000Z","updated_at":"2021-12-22T18:38:49.000Z","dependencies_parsed_at":"2022-09-07T23:12:21.338Z","dependency_job_id":null,"html_url":"https://github.com/fortunejs/fortune-nedb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fortunejs/fortune-nedb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fortunejs%2Ffortune-nedb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fortunejs%2Ffortune-nedb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fortunejs%2Ffortune-nedb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fortunejs%2Ffortune-nedb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fortunejs","download_url":"https://codeload.github.com/fortunejs/fortune-nedb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fortunejs%2Ffortune-nedb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263507898,"owners_count":23477406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T04:40:35.249Z","updated_at":"2025-07-04T12:07:26.830Z","avatar_url":"https://github.com/fortunejs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fortune NeDB Adapter\n\n[![Build Status](https://img.shields.io/travis/fortunejs/fortune-nedb/master.svg?style=flat-square)](https://travis-ci.org/fortunejs/fortune-nedb)\n[![npm Version](https://img.shields.io/npm/v/fortune-nedb.svg?style=flat-square)](https://www.npmjs.com/package/fortune-nedb)\n[![License](https://img.shields.io/npm/l/fortune-nedb.svg?style=flat-square)](https://raw.githubusercontent.com/fortunejs/fortune-nedb/master/LICENSE)\n\nThis is a [NeDB](https://github.com/louischatriot/nedb) adapter for [Fortune](http://fortunejs.com).\n\n\n## Usage\n\nInstall the `fortune-nedb` package from `npm`:\n\n```\n$ npm install fortune-nedb\n```\n\nThen use it with Fortune:\n\n```js\nconst fortune = require('fortune')\nconst nedbAdapter = require('fortune-nedb')\n\nconst store = fortune({ ... }, {\n  adapter: [ nedbAdapter, {/* options */} ]\n})\n```\n\n\n## Options\n\nAll of the options are enumerated [here](https://github.com/louischatriot/nedb). Here are additional adapter-specific options:\n\n- `dbPath`: Path to a directory where the database is persisted to disk. Optional.\n\nNote that the `filename` option has no effect, since Fortune.js determines filenames based on type name.\n\nIn 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.\n\n\n## License\n\nThis software is licensed under the [MIT License](//github.com/fortunejs/fortune-nedb/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffortunejs%2Ffortune-nedb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffortunejs%2Ffortune-nedb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffortunejs%2Ffortune-nedb/lists"}