{"id":13483473,"url":"https://github.com/kt3k/deno-bin","last_synced_at":"2025-04-04T10:06:09.200Z","repository":{"id":42499936,"uuid":"236507240","full_name":"kt3k/deno-bin","owner":"kt3k","description":"DEPRECATED: use https://www.npmjs.com/package/deno instead","archived":false,"fork":false,"pushed_at":"2025-03-28T00:18:15.000Z","size":133,"stargazers_count":73,"open_issues_count":5,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-28T00:22:23.433Z","etag":null,"topics":["deno"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/deno-bin","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/kt3k.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}},"created_at":"2020-01-27T14:21:23.000Z","updated_at":"2025-03-28T00:18:19.000Z","dependencies_parsed_at":"2023-09-28T05:09:54.920Z","dependency_job_id":"9a208617-362e-45e2-becd-38281b321e9b","html_url":"https://github.com/kt3k/deno-bin","commit_stats":{"total_commits":219,"total_committers":7,"mean_commits":"31.285714285714285","dds":0.3881278538812786,"last_synced_commit":"b2cd13958d0072dd5742b0814b28fffcf6b2dfb2"},"previous_names":[],"tags_count":179,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fdeno-bin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fdeno-bin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fdeno-bin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fdeno-bin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kt3k","download_url":"https://codeload.github.com/kt3k/deno-bin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246998441,"owners_count":20866741,"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":["deno"],"created_at":"2024-07-31T17:01:11.644Z","updated_at":"2025-04-04T10:06:09.168Z","avatar_url":"https://github.com/kt3k.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","deno"],"sub_categories":[],"readme":"\u003e [!CAUTION]\n\u003e This project is now deprecated. Use https://www.npmjs.com/package/deno instead.\n\n# deno-bin ![npm](https://img.shields.io/npm/v/deno-bin?color=green)\n\n\u003e Use [Deno][] via npm\n\nYou can use [deno][] via npm or npx.\n\nNote: This module installs deno at `node_modules/deno-bin/bin/deno`, and you can use it via npx or npm's run-script.\n\n# Usage via npx\n\n`npx deno-bin` works like `deno` executable. For example, you can run a deno script `https://deno.land/std/examples/welcome.ts` like the below:\n\n```shellsession\n$ npx deno-bin run https://deno.land/std/examples/welcome.ts\nWelcome to Deno!\n```\n\nYou can also start repl:\n\n```shellsession\n$ npx deno-bin\nDeno 1.1.0\nexit using ctrl+d or close()\n\u003e\n```\n\nYou can also use deno tools:\n```\nnpx deno-bin fmt             # Formats script\nnpx deno-bin lint --unstable # Checks lint rules\n```\n\n# Usage via run-scripts\n\nUse in `scripts` in package.json.\n\nFirst install `deno-bin`:\n\n```sh\nnpm i --save-dev deno-bin\n```\n\n(Note: This installs `deno` executable at `node_modules/deno-bin/bin/deno` internally.)\n\nThen use `deno` in your \"scripts\".\n\npackage.json:\n\n```json\n{\n  ...\n  \"scripts\": {\n    \"foo\": \"deno run some-script.ts\"\n  },\n  ...\n}\n```\n\nThen hit the command `npm run foo`, and it executes `deno run some-script.ts` with locally installed deno.\n\n# Ideas of usages\n\n## Use `deno lint` in your node.js project\n\nYou can format your scripts with `deno lint` which is faster than prettier. (`deno lint` uses [dprint][] internally, which is mostly compatible with prettier and is implemented in Rust.)\n\n```json\n{\n  \"scripts\": {\n    \"fmt\": \"deno fmt src\"\n  }\n}\n```\n\n## Run some utility scripts\n\nWhen you need some utility scripts in your repository, you can use deno for it. Because Deno can run typescript out of the box, you can skip any settings about typescript.\n\n```json\n{\n  \"scripts\": {\n    \"task\": \"deno run ./tools/some-task.ts\"\n  }\n}\n```\n\n# About the version of deno\n\n`deno-bin` downloads the same version of `deno` executable as its own version number. For example, if you install `deno-bin@1.8.1`, you'll get deno `v1.8.1`.\n\n# License\n\nMIT\n\n# History\n\n- 2021-04-26 Windows support [#4](https://github.com/kt3k/deno-bin/pull/4)\n\n[deno]: https://deno.land\n[dprint]: https://dprint.dev/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkt3k%2Fdeno-bin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkt3k%2Fdeno-bin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkt3k%2Fdeno-bin/lists"}