Skip to content

Instantly share code, notes, and snippets.

@fearthecowboy
Created January 26, 2024 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fearthecowboy/0eaf8696a72b5a75a784f2f11e8fd41b to your computer and use it in GitHub Desktop.
Save fearthecowboy/0eaf8696a72b5a75a784f2f11e8fd41b to your computer and use it in GitHub Desktop.
PowerShell and Deno Script
#!/usr/bin/env -S deno run --reload -A
` <#`
// this is all typescript code here.
console.log("we're running typescript using deno");
/*#>
# this is PowerShell code here.
if (-not (get-command deno)) { irm https://deno.land/install.ps1 | iex }
deno run --reload -A ($MyInvocation.MyCommand.Path) @args
#*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment