{"id":41528800,"url":"https://github.com/andipaetzold/mdb-reader","last_synced_at":"2026-01-23T22:42:32.754Z","repository":{"id":38133546,"uuid":"277863772","full_name":"andipaetzold/mdb-reader","owner":"andipaetzold","description":"JavaScript library to read data from Access databases","archived":false,"fork":false,"pushed_at":"2026-01-17T20:57:02.000Z","size":7702,"stargazers_count":53,"open_issues_count":14,"forks_count":16,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-18T02:51:23.362Z","etag":null,"topics":["accdb","access","javascript","mdb","ms-access","typescript"],"latest_commit_sha":null,"homepage":"https://npm.im/mdb-reader","language":"TypeScript","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/andipaetzold.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-07-07T16:09:44.000Z","updated_at":"2026-01-15T10:25:04.000Z","dependencies_parsed_at":"2024-05-17T23:25:05.164Z","dependency_job_id":"d42aa987-a204-442f-b1d7-8171e5ac1034","html_url":"https://github.com/andipaetzold/mdb-reader","commit_stats":{"total_commits":438,"total_committers":10,"mean_commits":43.8,"dds":0.504566210045662,"last_synced_commit":"ccba1e7cba4e9184029595066b24622d4199cd24"},"previous_names":[],"tags_count":55,"template":false,"template_full_name":null,"purl":"pkg:github/andipaetzold/mdb-reader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andipaetzold%2Fmdb-reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andipaetzold%2Fmdb-reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andipaetzold%2Fmdb-reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andipaetzold%2Fmdb-reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andipaetzold","download_url":"https://codeload.github.com/andipaetzold/mdb-reader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andipaetzold%2Fmdb-reader/sbom","scorecard":{"id":44954,"data":{"date":"2025-08-11","repo":{"name":"github.com/andipaetzold/mdb-reader","commit":"397445e4453e49cbaa8c96b126b6cce4feafcb8d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Maintained","score":4,"reason":"5 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/push.yml:38","Warn: no topLevel permission defined: .github/workflows/compressed-size.yml:1","Warn: no topLevel permission defined: .github/workflows/push.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":6,"reason":"dependency not pinned by hash detected -- score normalized to 6","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/compressed-size.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/andipaetzold/mdb-reader/compressed-size.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/compressed-size.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/andipaetzold/mdb-reader/compressed-size.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/andipaetzold/mdb-reader/push.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/andipaetzold/mdb-reader/push.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/andipaetzold/mdb-reader/push.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/andipaetzold/mdb-reader/push.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/andipaetzold/mdb-reader/push.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/andipaetzold/mdb-reader/push.yml/main?enable=pin","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   4 out of   4 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 25 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"18 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gpv5-7x3g-ghjv","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-x4c5-c7rf-jjgv","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-14T22:31:12.622Z","repository_id":38133546,"created_at":"2025-08-14T22:31:12.622Z","updated_at":"2025-08-14T22:31:12.622Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28701875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"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":["accdb","access","javascript","mdb","ms-access","typescript"],"created_at":"2026-01-23T22:42:32.215Z","updated_at":"2026-01-23T22:42:32.749Z","avatar_url":"https://github.com/andipaetzold.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/mdb-reader)](https://www.npmjs.com/package/mdb-reader)\n[![tests](https://github.com/andipaetzold/mdb-reader/actions/workflows/push.yml/badge.svg?branch=main)](https://github.com/andipaetzold/mdb-reader/actions/workflows/push.yml?query=branch%3Amain)\n[![downloads](https://img.shields.io/npm/dm/mdb-reader)](https://www.npmjs.com/package/mdb-reader)\n[![license](https://img.shields.io/github/license/andipaetzold/mdb-reader)](https://github.com/andipaetzold/mdb-reader/blob/main/LICENSE)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n# MDB Reader\n\nJavaScript library to read data from Access databases.\n\n## Installation\n\n```sh\nnpm install mdb-reader\n```\n\nor\n\n```sh\nyarn add mdb-reader\n```\n\n## Compatibility\n\n### Node / JavaScript\n\n-   Node 18, 20 and 22, 24 (LTS)\n-   Works in the browser with [buffer](https://www.npmjs.com/package/buffer) ([Example](https://github.com/andipaetzold/mdb-reader/tree/main/examples/browser))\n\n### Access Database versions\n\n-   Access 97 (Jet 3)\n-   Access 2000, XP and 2003 (Jet 4)\n-   Access 2010 (ACE14)\n-   Access 2013 (ACE15)\n-   Access 2016 (ACE16)\n-   Access 2019 (ACE17)\n\n### Encryption\n\n-   Jet\n-   Office Agile\n-   Office RC4 Crypto API\n\n## Dependencies\n\nTo decrypt databases, this library requires a few dependencies:\n\n-   [`browserify-aes`](https://www.npmjs.com/browserify-aes): Only imported when running in browser\n-   [`create-hash`](https://www.npmjs.com/create-hash): Only imported when running in browser\n-   [`fast-xml-parser`](https://www.npmjs.com/fast-xml-parser)\n\n## Usage\n\n```javascript\nimport { readFileSync } from \"fs\";\nimport MDBReader from \"mdb-reader\";\n\nconst buffer = readFileSync(\"database.mdb\");\nconst reader = new MDBReader(buffer);\n\nreader.getTableNames(); // ['Cats', 'Dogs', 'Cars']\n\nconst table = reader.getTable(\"Cats\");\ntable.getColumnNames(); // ['id', 'name', 'color']\ntable.getData(); // [{id: 5, name: 'Ashley', color: 'black'}, ...]\n```\n\n## Examples\n\n- [`browser`](examples/browser) - Running in the browser with parcel\n- [`to-json`](examples/to-json) - CLI script that accepts a database file name and outputs the data as JSON\n- [`sveltekit`](examples/sveltekit) - Running with SvelteKit\n\n## API\n\n### MDBReader\n\n```typescript\nclass MDBReader {\n    /**\n     * @param buffer Buffer of the database.\n     */\n    constructor(\n        buffer: Buffer,\n        options?: {\n            password?: string;\n        }\n    );\n\n    /**\n     * Date when the database was created\n     */\n    getCreationDate(): Date | null;\n\n    /**\n     * Database password\n     */\n    getPassword(): string | null;\n\n    /**\n     * Default sort order\n     */\n    getDefaultSortOrder(): Readonly\u003cSortOrder\u003e;\n\n    /**\n     * Returns an array of table names.\n     *\n     * @param normalTables Includes user tables.\n     * @param systemTables Includes system tables.\n     * @param linkedTables Includes linked tables.\n     */\n    getTableNames({\n        normalTables,\n        systemTables,\n        linkedTables,\n    }?: {\n        normalTables: boolean;\n        systemTables: boolean;\n        linkedTables: boolean;\n    }): string[];\n\n    /**\n     * Returns a table by its name.\n     *\n     * @param name Name of the table. Case sensitive.\n     */\n    getTable(name: string): Table;\n}\n```\n\n### Table\n\n```typescript\nclass Table {\n\n    /**\n     * Name of the table\n     */\n    readonly name: string,\n\n    /**\n     * Number of rows.\n     */\n    readonly rowCount: number;\n\n    /**\n     * Number of columns.\n     */\n    readonly columnCount: number;\n\n    /**\n     * Returns an ordered array of all column definitions.\n     */\n    getColumns(): Column[];\n\n    /**\n     * Returns a column definition by its name.\n     *\n     * @param name Name of the column. Case sensitive.\n     */\n    getColumn(name: string): Column;\n\n    /**\n     * Returns an ordered array of all column names.\n     */\n    getColumnNames(): string[];\n\n    /**\n     * Returns data from the table.\n     *\n     * @param columns Columns to be returned. Defaults to all columns.\n     * @param rowOffset Index of the first row to be returned. 0-based. Defaults to 0.\n     * @param rowLimit Maximum number of rows to be returned. Defaults to Infinity.\n     */\n    getData\u003cTRow extends {\n        [column in TColumn]: Value;\n        TColumn extends string = string;\n    }\u003e(options?: {\n        columns?: ReadonlyArray\u003cTColumn\u003e;\n        rowOffset?: number;\n        rowLimit?: number;\n    }): TRow[];\n}\n```\n\n### Column\n\n```typescript\ninterface Column {\n    /**\n     * Name of the table\n     */\n    name: string;\n\n    /**\n     * Type of the table\n     */\n    type: ColumnType;\n    size: number;\n\n    fixedLength: boolean;\n    nullable: boolean;\n    autoLong: boolean;\n    autoUUID: boolean;\n\n    /**\n     * Only exists if type = 'numeric'\n     */\n    precision?: number;\n\n    /**\n     * Only exists if type = 'numeric'\n     */\n    scale?: number;\n}\n```\n\n## Data Types\n\nThe data types returned by `Table.getData()` depends on the column type. Null values are always returned as `null`.\n\n| Column Type      | JavaScript Type |\n| ---------------- | --------------- |\n| bigint           | `bigint`        |\n| binary           | `Buffer`        |\n| boolean          | `boolean`       |\n| byte             | `number`        |\n| complex          | `number`        |\n| currency         | `string`        |\n| datetime         | `Date`          |\n| datetimeextended | `string`        |\n| double           | `number`        |\n| float            | `number`        |\n| integer          | `number`        |\n| long             | `number`        |\n| memo             | `string`        |\n| numeric          | `string`        |\n| ole              | `Buffer`        |\n| repid            | `string`        |\n| text             | `string`        |\n\n## Development\n\n### Build\n\nTo build the library, first install the dependencies, then run `npm run build` for a single build or `npm run watch` for automatic rebuilds.\n\n```sh\nnpm install\nnpm run build\n```\n\n### Tests\n\nTo run the tests, first install the dependencies, then run `npm test`. Watch mode can be started with `npm test -- --watch`.\n\n```sh\nnpm install\nnpm test\n```\n\n## Resources\n\n### MDB Tool\n\n[GitHub](https://github.com/brianb/mdbtools)\n\nSet of applications to read and write Access files, written in C. Main source of knowledge about the file structure and algorithms to extract data from it.\n\n### Jackcess\n\n[Jackcess](https://jackcess.sourceforge.io)\n\nJava library to read and write Access files. It inspired the interface of this library. The databases used for testing are copied from the [repository](https://github.com/jahlborn/jackcess).\n\n## The unofficial MDB Guide\n\n[Tech Specs for the JET format used by Access 1997-2010](http://jabakobob.net/mdb/)\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandipaetzold%2Fmdb-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandipaetzold%2Fmdb-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandipaetzold%2Fmdb-reader/lists"}