htaの代用にしたい。だからdenoを起動するのと同時にブラウザを起動したい。
ブラウザを起動するのに必要最低限なソースが以下。
ブラウザを起動するのに必要最低限なソースが以下。
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
// --allow-run | |
async function abc(hoge: number){ | |
const p = Deno.run({ | |
cmd: [ | |
"cmd", | |
"/C start https://www.google.com/" + hoge | |
], | |
stdout : 'piped' | |
}); | |
const o = await p.output(); | |
}; | |
abc(123) |
0 件のコメント:
コメントを投稿