{"id":13727211,"url":"https://github.com/denorg/arch","last_synced_at":"2025-04-12T10:35:36.317Z","repository":{"id":57107525,"uuid":"282145113","full_name":"denorg/arch","owner":"denorg","description":"Detect OS architecture","archived":false,"fork":false,"pushed_at":"2020-07-24T07:14:21.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T14:48:36.721Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://denorg.github.io/arch/","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/denorg.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":"2020-07-24T06:49:45.000Z","updated_at":"2023-06-14T16:38:40.000Z","dependencies_parsed_at":"2022-08-20T17:11:19.905Z","dependency_job_id":null,"html_url":"https://github.com/denorg/arch","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"denorg/starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denorg%2Farch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denorg%2Farch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denorg%2Farch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denorg%2Farch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denorg","download_url":"https://codeload.github.com/denorg/arch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248554026,"owners_count":21123570,"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":[],"created_at":"2024-08-03T01:03:44.298Z","updated_at":"2025-04-12T10:35:36.068Z","avatar_url":"https://github.com/denorg.png","language":"TypeScript","readme":"# 🤖 Arch\n\nThis module is used to determine if the user is on a 32-bit vs. 64-bit operating system to offer the right app installer\n\nUse this package to get the actual operating system CPU architecture.\n\n[![Deno CI](https://github.com/denorg/arch/workflows/Deno%20CI/badge.svg)](https://github.com/denorg/arch/actions)\n[![GitHub](https://img.shields.io/github/license/denorg/arch)](https://github.com/denorg/arch/blob/master/LICENSE)\n[![Contributors](https://img.shields.io/github/contributors/denorg/arch)](https://github.com/denorg/arch/graphs/contributors)\n[![Deno Starter](https://img.shields.io/badge/deno-starter-brightgreen)](https://denorg.github.io/starter/)\n[![Made by Denorg](https://img.shields.io/badge/made%20by-denorg-0082fb)](https://github.com/denorg)\n[![TypeScript](https://img.shields.io/badge/types-TypeScript-blue)](https://github.com/denorg/arch)\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## ⭐ Getting started\n\nImport the default function and use it:\n\n```ts\nimport arch from \"https://raw.githubusercontent.com/denorg/arch/master/mod.ts\";\n\nconst result = await arch();\n```\n\n### CLI with [DPX](https://github.com/denorg/dpx)\n\nAfter [installing DPX](https://github.com/denorg/dpx), you can directly use the CLI using the `dpx` command:\n\n```bash\ndpx --allow-read arch \u003carguments\u003e\n```\n\n### CLI\n\nAlternatively, you can use it directly from the CLI by using `deno run`:\n\n```bash\ndeno run --allow-read https://raw.githubusercontent.com/denorg/arch/master/cli.ts \u003carguments\u003e\n```\n\nYou can also install it globally using the following:\n\n```bash\ndeno install --allow-read -n arch https://raw.githubusercontent.com/denorg/arch/master/cli.ts\n```\n\nThen, the package is available to run:\n\n```bash\narch \u003carguments\u003e\n```\n\n### Configuration\n\nRequired permissions:\n\n1. `--allow-read`\n\n## 👩‍💻 Development\n\nRun tests:\n\n```bash\ndeno test --allow-read\n```\n\n## ⭐ Related Work\n\n- [feross/arch](https://github.com/feross/arch) is the Node.js project serving as inspiration for this one\n\n## 📄 License\n\nMIT © [Denorg](https://den.org.in)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://den.org.in\"\u003e\n    \u003cimg width=\"100\" alt=\"\" src=\"https://raw.githubusercontent.com/denorg/denorg/master/logo.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003csub\u003eA project by \u003ca href=\"https://den.org.in\"\u003eDenorg\u003c/a\u003e, the world's first Deno-focused community\u003cbr\u003eorganization and consulting company. \u003ca href=\"https://den.org.in\"\u003eWork with us →\u003c/a\u003e\u003c/sub\u003e\n\u003c/p\u003e\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenorg%2Farch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenorg%2Farch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenorg%2Farch/lists"}