{"id":16754729,"url":"https://github.com/mehmetgenc-devs/jsondb","last_synced_at":"2026-05-09T15:04:56.443Z","repository":{"id":205114891,"uuid":"713459383","full_name":"mehmetgenc-devs/jsondb","owner":"mehmetgenc-devs","description":"This module allows you to create an easy-to-use and instantly modifiable local database in JSON format.","archived":false,"fork":false,"pushed_at":"2024-07-25T02:15:13.000Z","size":64,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T23:56:49.511Z","etag":null,"topics":["database","database-connector","database-management","database-schema","databases","db","json","json-data","jsondb"],"latest_commit_sha":null,"homepage":"https://mehmetgenc.dev","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/mehmetgenc-devs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-02T15:05:03.000Z","updated_at":"2024-08-31T14:19:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2e91be9-cc9d-4f0d-9434-bedac5fcf882","html_url":"https://github.com/mehmetgenc-devs/jsondb","commit_stats":null,"previous_names":["imehmetgenc/dbjson","imehmetgenc/db.json","imehmetgenc/jsondb","mehmetgenc-devs/jsondb","m3g4devs/jsondb"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehmetgenc-devs%2Fjsondb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehmetgenc-devs%2Fjsondb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehmetgenc-devs%2Fjsondb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehmetgenc-devs%2Fjsondb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mehmetgenc-devs","download_url":"https://codeload.github.com/mehmetgenc-devs/jsondb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248252661,"owners_count":21072699,"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":["database","database-connector","database-management","database-schema","databases","db","json","json-data","jsondb"],"created_at":"2024-10-13T03:05:45.690Z","updated_at":"2026-05-09T15:04:56.338Z","avatar_url":"https://github.com/mehmetgenc-devs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch3\u003eJSON DATABASE\u003c/h3\u003e\n\u003cp\u003e\nEN: This module allows you to create an easy-to-use and instantly modifiable local database in JSON format.\u003cbr/\u003e\nTR: Bu modül, JSON formatında kullanımı kolay ve anlık değiştirilebilen yerel bir veritabanı oluşturmanıza olanak sağlar.\u003cbr/\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\u003ch3\u003eUsage\u003c/h3\u003e\nInstall this module:\n\n```bash\n$ npm install @imehmetgenc/db.json\n```\n\n\u003cbr/\u003e\nImport or require the module to your code:\n\n```js\nconst MegaDB = require('@imehmetgenc/db.json');\n```\n\n```js\nimport MegaDB from '@imehmetgenc/db.json';\n```\n\u003cbr/\u003e\n\n\n\u003ch3\u003eTest\u003c/h3\u003e\n\u003cp\u003e\nEN: I have left a few tips for you to use below, I hope I explained them well.\u003cbr\u003e\nTR: Aşağıda size kullanmanz için bir kaç ipucu bıraktım umarım iyi anlatmışımdır.\u003cbr\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\n\n```js\nconst newDb = new MegaDB(\"test\"); // Create database src: /database/test.json\n\n/*\nconst newDb = new MegaDB(); // Create database src: /database/database.json\nconst newDb = new MegaDB({ \"name\": \"test\", \"folder\": \"database\", \"noBlankData\": true, \"readable\": true }); // Create database src: /database/test.json\n*/\n\nnewDb.set(\"database\", \"test\"); // output: true, data: { \"database\" : \"test\" }\n\nnewDb.set(\"array\", [1]); // output: true, data: { \"array\" : [1] }\n\nnewDb.push(\"array\", 2); // output: true, data: { \"array\" : [1, 2] }\n\nnewDb.set(\"number\", 1); // output: true, data: { \"number\" : 1 }\n\nnewDb.add(\"number\", 2); // output: true, data: { \"number\" : 3 }\n\nnewDb.all() // output: { \"database\" : \"test\", \"array\" : [1, 2], \"number\" : 3 }\n\nnewDb.deleteAll() // output: true, data: {}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehmetgenc-devs%2Fjsondb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmehmetgenc-devs%2Fjsondb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehmetgenc-devs%2Fjsondb/lists"}