{"id":29966736,"url":"https://github.com/thomas3577/denohost","last_synced_at":"2026-04-23T07:01:04.031Z","repository":{"id":304453969,"uuid":"998356825","full_name":"thomas3577/DenoHost","owner":"thomas3577","description":"Run JavaScript/TypeScript from .NET using Deno","archived":false,"fork":false,"pushed_at":"2026-04-20T06:58:05.000Z","size":1052,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-20T08:33:49.119Z","etag":null,"topics":["deno","dotnet","javascript","nuget","typescript"],"latest_commit_sha":null,"homepage":"https://nuget.org/packages/DenoHost.Core","language":"C#","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/thomas3577.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-08T12:47:27.000Z","updated_at":"2026-04-20T06:58:08.000Z","dependencies_parsed_at":"2025-08-17T09:08:17.497Z","dependency_job_id":"063fb5a1-b2ac-49a1-a450-98817feda1ce","html_url":"https://github.com/thomas3577/DenoHost","commit_stats":null,"previous_names":["thomas3577/denohost"],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/thomas3577/DenoHost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas3577%2FDenoHost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas3577%2FDenoHost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas3577%2FDenoHost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas3577%2FDenoHost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomas3577","download_url":"https://codeload.github.com/thomas3577/DenoHost/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomas3577%2FDenoHost/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32169657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T02:19:40.750Z","status":"ssl_error","status_checked_at":"2026-04-23T02:17:55.737Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["deno","dotnet","javascript","nuget","typescript"],"created_at":"2025-08-04T03:01:22.340Z","updated_at":"2026-04-23T07:01:04.006Z","avatar_url":"https://github.com/thomas3577.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DenoHost\n\n![Build](https://github.com/thomas3577/DenoHost/actions/workflows/build.yml/badge.svg)\n![Coverage](https://img.shields.io/badge/coverage-85%25-brightgreen.svg)\n![NuGet](https://img.shields.io/nuget/v/DenoHost.Core.svg)\n![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)\n\n---\n\n## About\n\n**DenoHost** allows you to seamlessly run [Deno](https://deno.com/) scripts or\ninline JavaScript/TypeScript code within your .NET applications.\\\nIt bundles platform-specific Deno executables as separate NuGet packages and\nprovides a simple, consistent API for execution.\n\n---\n\n## Features\n\n- Modular runtime packages (per RID)\n- Clean .NET API with async execution\n- Testable with xUnit\n- Packaged for NuGet (multi-target)\n- Linux, Windows, macOS support\n\n---\n\n## NuGet Packages\n\n```bash\ndotnet add package DenoHost.Core\n```\n\n| Package                        | Description                  | Platforms     |\n| ------------------------------ | ---------------------------- | ------------- |\n| `DenoHost.Core`                | Core execution logic (API)   | all           |\n| `DenoHost.Runtime.win-x64`     | Bundled Deno for Windows     | `win-x64`     |\n| `DenoHost.Runtime.win-arm64`   | Bundled Deno for Windows ARM | `win-arm64`   |\n| `DenoHost.Runtime.linux-x64`   | Deno for Linux               | `linux-x64`   |\n| `DenoHost.Runtime.linux-arm64` | Deno for ARM Linux           | `linux-arm64` |\n| `DenoHost.Runtime.osx-x64`     | Deno for macOS Intel         | `osx-x64`     |\n| `DenoHost.Runtime.osx-arm64`   | Deno for macOS Apple Silicon | `osx-arm64`   |\n\n---\n\n## Deno.Execute Example\n\nFor simple script execution with immediate results:\n\n```csharp\nusing DenoHost.Core;\n\nvar options = new DenoExecuteBaseOptions { WorkingDirectory = \"./scripts\" };\nstring[] args = [\"run\", \"app.ts\"];\n\nawait Deno.Execute(options, args);\n```\n\n### Cancellation\n\nYou can cancel execution via a `CancellationToken`. Cancellation throws an `OperationCanceledException` and terminates the underlying Deno process.\n\n```csharp\nusing DenoHost.Core;\n\nusing var cts = new CancellationTokenSource(TimeSpan.FromSeconds(10));\n\nvar options = new DenoExecuteBaseOptions { WorkingDirectory = \"./scripts\" };\nawait Deno.Execute(options, [\"run\", \"long-running.ts\"], cts.Token);\n```\n\n### Arguments and quoting\n\nDenoHost passes arguments via `ProcessStartInfo.ArgumentList`. Pass each argument as its own string (avoid adding shell-style quotes inside argument strings).\n\n```csharp\nawait Deno.Execute(\"eval\", [\"console.log('hello world')\"]);\n```\n\n## DenoProcess Example\n\nFor long-running processes with interactive communication:\n\n```csharp\nusing DenoHost.Core;\n\n// Create a managed Deno process\nusing var denoProcess = new DenoProcess(\n  command: \"run\",\n  args: [\"--allow-read\", \"server.ts\"],\n  workingDirectory: \"./scripts\"\n);\n\n// Start the process\nawait denoProcess.StartAsync();\n\n// Send input to the process\nawait denoProcess.SendInputAsync(\"hello\");\n\n// Stop gracefully when done\nawait denoProcess.StopAsync();\n```\n\n## Requirements\n\n- .NET 9.0+\n- Deno version is bundled per RID via GitHub Releases\n- No need to install Deno globally\n\n## Feedback\n\nIf you're using DenoHost in a real project, I'd love to hear about it.\n\n## License\n\nThis project is licensed under the [MIT License](./LICENSE).\n\n## Security Policy\n\nSee [SECURITY.md](./SECURITY.md) for how to report vulnerabilities.\n\n## Links\n\n- [deno.com](https://deno.com/)\n- [NuGet Gallery](https://www.nuget.org/packages?q=DenoHost)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomas3577%2Fdenohost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomas3577%2Fdenohost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomas3577%2Fdenohost/lists"}