{"id":16350762,"url":"https://github.com/kevva/bin-check","last_synced_at":"2025-07-21T07:32:08.469Z","repository":{"id":13910576,"uuid":"16609540","full_name":"kevva/bin-check","owner":"kevva","description":"Check if a binary is working by checking its exit code","archived":false,"fork":false,"pushed_at":"2021-01-10T17:14:09.000Z","size":309,"stargazers_count":13,"open_issues_count":1,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-07T12:07:50.448Z","etag":null,"topics":["binary","check","executable","nodejs"],"latest_commit_sha":null,"homepage":"","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/kevva.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":"2014-02-07T09:10:24.000Z","updated_at":"2024-04-05T19:04:12.000Z","dependencies_parsed_at":"2022-07-10T05:00:30.958Z","dependency_job_id":null,"html_url":"https://github.com/kevva/bin-check","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/kevva/bin-check","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fbin-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fbin-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fbin-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fbin-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevva","download_url":"https://codeload.github.com/kevva/bin-check/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Fbin-check/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266261123,"owners_count":23901284,"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":["binary","check","executable","nodejs"],"created_at":"2024-10-11T01:06:13.664Z","updated_at":"2025-07-21T07:32:08.449Z","avatar_url":"https://github.com/kevva.png","language":"JavaScript","readme":"# bin-check [![Build Status](https://travis-ci.org/kevva/bin-check.svg?branch=master)](https://travis-ci.org/kevva/bin-check)\n\n\u003e Check if a binary is working by checking its exit code\n\n\n## Install\n\n```\n$ npm install bin-check\n```\n\n\n## Usage\n\n```js\nconst binCheck = require('bin-check');\n\nbinCheck('/bin/sh', ['--version']).then(works =\u003e {\n\tconsole.log(works);\n\t//=\u003e true\n});\n```\n\n\n## API\n\n### binCheck(binary, [arguments])\n\nReturns a `Promise` for a `boolean`.\n\n### binCheck.sync(binary, [arguments])\n\nReturns a `boolean`.\n\n#### binary\n\nType: `string`\n\nPath to the binary.\n\n#### arguments\n\nType: `Array`\u003cbr\u003e\nDefault: `['--help']`\n\nArguments to run the binary with.\n\n\n## License\n\nMIT © [Kevin Mårtensson](https://github.com/kevva)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevva%2Fbin-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevva%2Fbin-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevva%2Fbin-check/lists"}