{"id":48810535,"url":"https://github.com/enzon3/txtdb","last_synced_at":"2026-04-14T07:04:27.844Z","repository":{"id":37486797,"uuid":"504337437","full_name":"EnZon3/txtdb","owner":"EnZon3","description":"A simple database utilizing text files","archived":false,"fork":false,"pushed_at":"2022-06-22T14:59:15.000Z","size":55,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-24T04:56:11.966Z","etag":null,"topics":["backend","database","db","easy-to-use","text"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EnZon3.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":"2022-06-16T23:48:07.000Z","updated_at":"2022-06-19T17:36:10.000Z","dependencies_parsed_at":"2022-09-15T04:41:40.825Z","dependency_job_id":null,"html_url":"https://github.com/EnZon3/txtdb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EnZon3/txtdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnZon3%2Ftxtdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnZon3%2Ftxtdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnZon3%2Ftxtdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnZon3%2Ftxtdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EnZon3","download_url":"https://codeload.github.com/EnZon3/txtdb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnZon3%2Ftxtdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31785682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["backend","database","db","easy-to-use","text"],"created_at":"2026-04-14T07:04:25.087Z","updated_at":"2026-04-14T07:04:27.829Z","avatar_url":"https://github.com/EnZon3.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# txtdb  ![GitHub](https://img.shields.io/github/license/enzon3/txtdb) ![npm](https://img.shields.io/npm/v/@enzon3/txtdb) ![GitHub package.json dynamic](https://img.shields.io/github/package-json/keywords/enzon3/txtdb) ![npm bundle size](https://img.shields.io/bundlephobia/min/@enzon3/txtdb)\n\n![logo](https://res.cloudinary.com/enzon3/image/upload/v1655678333/txtdb_logo_u0eo85.png)\n\ntxtdb is a simple key-based database based on text files formatted in a special way.\n\n## Features\n\n    Key-based\n    Simple\n    Fast\n    Easy to use\n    Cache\n    Up to 2000 keys\n\n## Installation\n\nUse the package manager [npm](https://npmjs.com) to install txtdb.\n```bash\nnpm i @enzon3/txtdb\n```\n\n## Usage\n\n### Setup up txtdb\nThe second parameter is a boolean for whether or not to overwrite already existing keys.\n```javascript\nconst settings = {\n    dbFile: '[db file location here].txt',\n    allowOverwrite: true,\n    delimiter: 'any delimiter you want, for example: \"|\"',\n    enableCache: false\n}\ndb.setup(settings);\n```\n\n### Get a value\n```javascript\nasync function getKey(key) {\n    const value = await db.getKey(key);\n    return value;\n}\n\nvar key = getKey('key');\n// do something with key\n```\n\n### Set a value\nQuick warning, if the AllowOverwrite flag in the setup function is set to true, and if there was a key of the same name before, this command would ***overwrite*** it.\n```javascript\ndb.setKey('key', 'value');\n```\n\n### Delete a value\n```javascript\ndb.deleteKey('key');\n```\n\n## Contributing\nPlease don't request for write access to the repository, instead, fork the repository and open a PR describing what you would like to change in depth.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenzon3%2Ftxtdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenzon3%2Ftxtdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenzon3%2Ftxtdb/lists"}