{"id":19220307,"url":"https://github.com/rx14/java-find","last_synced_at":"2026-04-13T13:03:17.230Z","repository":{"id":57279519,"uuid":"51720319","full_name":"RX14/java-find","owner":"RX14","description":"NPM package to find and list java installations, and their metadata.","archived":false,"fork":false,"pushed_at":"2016-02-16T23:15:59.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T04:39:34.634Z","etag":null,"topics":["java","java-installation","javascript","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/RX14.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":"2016-02-15T00:01:04.000Z","updated_at":"2016-02-15T21:16:59.000Z","dependencies_parsed_at":"2022-09-18T08:52:29.077Z","dependency_job_id":null,"html_url":"https://github.com/RX14/java-find","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RX14%2Fjava-find","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RX14%2Fjava-find/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RX14%2Fjava-find/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RX14%2Fjava-find/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RX14","download_url":"https://codeload.github.com/RX14/java-find/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240293313,"owners_count":19778478,"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":["java","java-installation","javascript","nodejs","typescript"],"created_at":"2024-11-09T14:34:44.899Z","updated_at":"2026-04-13T13:03:17.123Z","avatar_url":"https://github.com/RX14.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# java-find\nNode module for listing java installations, and finding their metadata.\n\n## Installation\n```\nnpm install java-find --save\n```\n\n## Usage\nExample:\n```javascript\nvar javaFind = require(\"java-find\");\nvar child_process = require(\"child_process\");\n\njavaFind.getJavas().then(javas =\u003e {\n    javas\n        .filter(java =\u003e java.arch == 'x64')\n        .forEach(java =\u003e {\n            child_process.execFile(java.path, [\"-jar\", \"MyJar.jar\"]);\n        });\n});\n```\n\nCalling `gatJavas()` will return a promise of an array of java version objects.\n\nJava version objects looks like this:\n```javascript\n{\n    path: \"/usr/bin/java\",\n    arch: \"x86\", // or x64\n    version: { // 1.8.0_74 (Java 8)\n        major: 1,\n        minor: 8,\n        patch: 0,\n        update: 74\n    }\n}\n```\n\nYou can also use the `setDebug` method to direct debug logging:\n```js\njavaFind.setDebug(debug =\u003e {\n    console.log(debug);\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frx14%2Fjava-find","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frx14%2Fjava-find","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frx14%2Fjava-find/lists"}