{"id":18717430,"url":"https://github.com/js-data/js-data-nedb","last_synced_at":"2025-09-08T07:38:12.846Z","repository":{"id":57142600,"uuid":"43476514","full_name":"js-data/js-data-nedb","owner":"js-data","description":"Nedb adapter for js-data","archived":false,"fork":false,"pushed_at":"2016-08-31T21:41:35.000Z","size":27,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-28T15:40:21.190Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.js-data.io/docs/dsnedbadapter","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/js-data.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-01T03:27:03.000Z","updated_at":"2017-01-29T17:10:58.000Z","dependencies_parsed_at":"2022-09-05T18:41:12.530Z","dependency_job_id":null,"html_url":"https://github.com/js-data/js-data-nedb","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-data%2Fjs-data-nedb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-data%2Fjs-data-nedb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-data%2Fjs-data-nedb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-data%2Fjs-data-nedb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/js-data","download_url":"https://codeload.github.com/js-data/js-data-nedb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239581796,"owners_count":19662958,"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-07T13:16:13.212Z","updated_at":"2025-02-19T01:43:27.701Z","avatar_url":"https://github.com/js-data.png","language":"JavaScript","readme":"\u003cimg src=\"https://raw.githubusercontent.com/js-data/js-data/master/js-data.png\" alt=\"js-data logo\" title=\"js-data\" align=\"right\" width=\"64\" height=\"64\" /\u003e\n\n## js-data-nedb [![npm version](https://img.shields.io/npm/v/js-data-nedb.svg?style=flat-square)](https://www.npmjs.org/package/js-data-nedb) [![Circle CI](https://img.shields.io/circleci/project/js-data/js-data-nedb/master.svg?style=flat-square)](https://circleci.com/gh/js-data/js-data-nedb/tree/master) [![npm downloads](https://img.shields.io/npm/dm/js-data-nedb.svg?style=flat-square)](https://www.npmjs.org/package/js-data-nedb) [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/js-data/js-data-nedb/blob/master/LICENSE)\n\nnedb adapter for [js-data](http://www.js-data.io/).\n\n### API Documentation\n[DSNedbAdapter](http://www.js-data.io/docs/dsnedbadapter)\n\n### Project Status\n\n__Latest Release:__ [![Latest Release](https://img.shields.io/github/release/js-data/js-data-nedb.svg?style=flat-square)](https://github.com/js-data/js-data-nedb/releases)\n\n### Quick Start\n`npm install --save js-data js-data-nedb`.\n\nLoad `js-data-nedb.js` after `js-data.js`.\n\n```js\nvar adapter = new DSNedbAdapter();\n\nvar store = new JSData.DS();\nstore.registerAdapter('nedb', adapter, { default: true });\n\n// \"store\" will now use the nedb adapter for all async operations\nvar User = store.defineResource({\n  name: 'user',\n  // path where you want the table file for this resource created\n  filepath: 'path/to/userTable.db'\n});\n\n// nedb handler is available here\nUser.db; // don't run custom queries unless you know what you're doing\n\n// one method you might want to call is User.db.persistence.compactDatafile()\n\n// we don't specify a filepath here,\n// so it's automatically created at \"./post.db\"\nvar Post = store.defineResource({\n  name: 'post'\n});\n```\n\n### Changelog\n[CHANGELOG.md](https://github.com/js-data/js-data-nedb/blob/master/CHANGELOG.md)\n\n### Community\n- [Gitter Channel](https://gitter.im/js-data/js-data) - Better than IRC!\n- [Announcements](http://www.js-data.io/blog)\n- [Mailing List](https://groups.io/org/groupsio/jsdata) - Ask your questions!\n- [Issues](https://github.com/js-data/js-data-nedb/issues) - Found a bug? Feature request? Submit an issue!\n- [GitHub](https://github.com/js-data/js-data-nedb) - View the source code for js-data.\n- [Contributing Guide](https://github.com/js-data/js-data-nedb/blob/master/CONTRIBUTING.md)\n\n### Contributing\n\nFirst, support is handled via the [Gitter Channel](https://gitter.im/js-data/js-data) and the [Mailing List](https://groups.io/org/groupsio/jsdata). Ask your questions there.\n\nWhen submitting issues on GitHub, please include as much detail as possible to make debugging quick and easy.\n\n- good - Your versions of js-data, js-data-nedb, etc., relevant console logs/error, code examples that revealed the issue\n- better - A [plnkr](http://plnkr.co/), [fiddle](http://jsfiddle.net/), or [bin](http://jsbin.com/?html,output) that demonstrates the issue\n- best - A Pull Request that fixes the issue, including test coverage for the issue and the fix\n\n[Github Issues](https://github.com/js-data/js-data-nedb/issues).\n\n#### Submitting Pull Requests\n\n1. Contribute to the issue/discussion that is the reason you'll be developing in the first place\n1. Fork js-data-nedb\n1. `git clone git@github.com:\u003cyou\u003e/js-data-nedb.git`\n1. `cd js-data-nedb; npm install; bower install;`\n1. Write your code, including relevant documentation and tests\n1. Run `grunt test` (build and test)\n1. Your code will be linted and checked for formatting, the tests will be run\n1. The `dist/` folder \u0026 files will be generated, do NOT commit `dist/*`! They will be committed when a release is cut.\n1. Submit your PR and we'll review!\n1. Thanks!\n\n### License\n\nThe MIT License (MIT)\n\nCopyright (c) 2014-2015 Jason Dobry\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-data%2Fjs-data-nedb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjs-data%2Fjs-data-nedb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-data%2Fjs-data-nedb/lists"}