Created
January 26, 2024 19:34
-
-
Save fearthecowboy/0eaf8696a72b5a75a784f2f11e8fd41b to your computer and use it in GitHub Desktop.
PowerShell and Deno Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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