{"id":20465796,"url":"https://github.com/naxmefy/node-jdbc","last_synced_at":"2026-03-01T05:34:53.963Z","repository":{"id":20785897,"uuid":"90910783","full_name":"naxmefy/node-jdbc","owner":"naxmefy","description":"small wrapper to work with jdbc in node","archived":false,"fork":false,"pushed_at":"2025-06-07T12:37:50.000Z","size":288,"stargazers_count":18,"open_issues_count":3,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-25T19:38:44.430Z","etag":null,"topics":["java","jdbc","nodejs","typescript"],"latest_commit_sha":null,"homepage":"","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/naxmefy.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,"zenodo":null}},"created_at":"2017-05-10T21:41:01.000Z","updated_at":"2025-10-14T17:59:32.000Z","dependencies_parsed_at":"2023-02-10T22:16:30.852Z","dependency_job_id":"c735a069-df62-436a-b028-0eb2ebdbdad3","html_url":"https://github.com/naxmefy/node-jdbc","commit_stats":{"total_commits":77,"total_committers":8,"mean_commits":9.625,"dds":0.5454545454545454,"last_synced_commit":"cdc884812185048921bcd55a86ab246eecf0542d"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/naxmefy/node-jdbc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naxmefy%2Fnode-jdbc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naxmefy%2Fnode-jdbc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naxmefy%2Fnode-jdbc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naxmefy%2Fnode-jdbc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naxmefy","download_url":"https://codeload.github.com/naxmefy/node-jdbc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naxmefy%2Fnode-jdbc/sbom","scorecard":{"id":676734,"data":{"date":"2025-08-11","repo":{"name":"github.com/naxmefy/node-jdbc","commit":"8307c183ccd9fafdeaa3c69f00fb1c010a936166"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Maintained","score":0,"reason":"1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","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":1,"reason":"Found 1/8 approved changesets -- score normalized to 1","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/naxmefy/node-jdbc/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/naxmefy/node-jdbc/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/naxmefy/node-jdbc/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/naxmefy/node-jdbc/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/naxmefy/node-jdbc/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/naxmefy/node-jdbc/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/naxmefy/node-jdbc/release.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/release.yml:18","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 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":"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":"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":"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":"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":"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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 24 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":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc"],"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-21T21:45:21.188Z","repository_id":20785897,"created_at":"2025-08-21T21:45:21.188Z","updated_at":"2025-08-21T21:45:21.188Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29960438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T01:47:18.291Z","status":"online","status_checked_at":"2026-03-01T02:00:07.437Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["java","jdbc","nodejs","typescript"],"created_at":"2024-11-15T13:19:51.903Z","updated_at":"2026-03-01T05:34:53.943Z","avatar_url":"https://github.com/naxmefy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @naxmefy/jdbc\n\nsmall wrapper to work with jdbc in node.\n\n[![npm version](https://badge.fury.io/js/%40naxmefy%2Fjdbc.svg)](https://badge.fury.io/js/%40naxmefy%2Fjdbc)\n\n[![Build Status](https://www.travis-ci.org/naxmefy/node-jdbc.svg?branch=master)](https://www.travis-ci.org/naxmefy/node-jdbc)\n[![Coverage Status](https://coveralls.io/repos/github/naxmefy/node-jdbc/badge.svg?branch=master)](https://coveralls.io/github/naxmefy/node-jdbc?branch=master)\n\n## prerequisites\n\n**node-java**\n\n```bash\n$ npm install --save java\n```\n\n\u003e **HINT**\n\u003e\n\u003e node-java installation can fail on windows \n\u003e (i never got it work on windows).\n\u003e\n\u003e I used docker on windows to get it working.\n\u003e\n\u003e You can find my example docker image on docker hub at\n\u003e [https://hub.docker.com/r/naxmefy/node-java/](https://hub.docker.com/r/naxmefy/node-java/)\n\u003e or\n\u003e [https://github.com/naxmefy/docker-node-java](https://github.com/naxmefy/docker-node-java)\n\n**OPTIONAL: node-java-maven**\n\n```bash\n$ npm install --save node-java-maven\n```\n\n## installation\n\n```bash\n$ npm install --save @naxmefy/jdbc\n```\n\n## usage\n\n**setup jdbc driver inside ```package.json```**\n\n```json\n{\n    \"name\": \"myapp\",\n    \"version\": \"0.0.0\",\n    \"private\": true,\n    \"java\": {\n      \"dependencies\": [\n        {\n          \"groupId\": \"com.h2database\",\n          \"artifactId\": \"h2\",\n          \"version\": \"1.4.195\"\n        }\n      ]\n    },\n    \"dependencies\": {\n      \"@naxmefy/jdbc\": \"^0.1.0\",\n      \"java\": \"^0.8.0\",\n      \"node-java-maven\": \"^0.0.12\"\n    }\n}\n```\n\n**in your main file (js)**\n\n```javascript\nconst JDBC = require('@naxmefy/jdbc').JDBC\nconst myDatabase = new JDBC({\n  className: 'any.jdbc.Driver',\n  url: 'jdbc:to:any.db',\n  username: 'foo',\n  password: 'bar'\n})\n\nmyDatabase.createStatement()\n  .then(statement =\u003e {\n    return statement.executeQuery('SELECT * FROM FOO')\n  })\n  .then(resultSet =\u003e {\n      const arrayOfResults = resultSet.fetchAllResults()\n      arrayOfResults.forEach(result =\u003e {\n          console.log(result)\n      })\n  })\n```\n\n**or with typescript (types included)**\n```typescript\nimport {JDBC, ResultSet, Statement} from '@naxmefy/jdbc'\nconst myDatabase = new JDBC({\n  className: 'any.jdbc.Driver',\n  url: 'jdbc:to:any.db',\n  username: 'foo',\n  password: 'bar'\n})\n\nmyDatabase.createStatement()\n  .then((statement: Statement) =\u003e {\n    return statement.executeQuery('SELECT * FROM FOO')\n  })\n  .then((resultSet: ResultSet) =\u003e {\n      const arrayOfResults = resultSet.fetchAllResults()\n      arrayOfResults.forEach(result =\u003e {\n          console.log(result)\n      })\n  })\n```\n\n## usage with Docker\n\n\u003e **HINT**\n\u003e\n\u003e The following docker config contains proxy config too.\n\u003e **Maybe you do not need it**.\n\n### example ``` Dockerfile ```\n\n```dockerfile\nFROM naxmefy/node-java\n\nWORKDIR /usr/app\n\nCOPY package.json .\nRUN npm config set proxy $HTTP_PROXY\nRUN npm config set https-proxy $HTTPS_PROXY\nRUN npm install --quiet\n\nCOPY . .\n```\n\n### example ``` docker-compose.yml ```\n\n```yaml\nversion: '2'\nservices:\n  web:\n    build:\n      context: .\n      args:\n        - http_proxy\n        - https_proxy\n        - no_proxy\n        - HTTP_PROXY\n        - HTTPS_PROXY\n        - NO_PROXY\n    command: npm start\n    volumes:\n      - .:/usr/app/\n      - /usr/app/node_modules\n    ports:\n      - \"3000:3000\"\n    links:\n      - postgres\n    environment:\n      NODE_ENV: development\n      DEBUG: @naxmefy/jdbc\n  postgres:\n    image: postgres\n    environment:\n      POSTGRES_USER: pguser\n      POSTGRES_PASSWORD: pgpass\n      POSTGRES_DB: pgdb\n    ports:\n      - \"5432:5432\"\n```\n\n### example java maven config\n\n```json\n{\n  \"java\": {\n    \"dependencies\": [\n      {\n        \"groupId\": \"org.postgresql\",\n        \"artifactId\": \"postgresql\",\n        \"version\": \"42.1.1\"\n      }\n    ]\n  }\n}\n```\n\n### example jdbc instantiation\n\n```javascript\nconst myPostgresDB = new JDBC({\n  className: 'org.postgresql.Driver',\n  url: 'jdbc:postgresql://postgres:5432/pgdb',\n  username: 'pguser',\n  password: 'pgpass'\n})\n```\n\n## Contributing\n\n* open issues for bugs or whatever\n* fork repo, make change, start pull request\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaxmefy%2Fnode-jdbc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaxmefy%2Fnode-jdbc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaxmefy%2Fnode-jdbc/lists"}