mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
feat: Add Deno.dir("executable") (#3526)
This commit is contained in:
parent
f4f4c6bcb4
commit
f07ffe8980
4 changed files with 31 additions and 6 deletions
14
cli/js/lib.deno_runtime.d.ts
vendored
14
cli/js/lib.deno_runtime.d.ts
vendored
|
@ -59,6 +59,7 @@ declare namespace Deno {
|
|||
| "home"
|
||||
| "cache"
|
||||
| "config"
|
||||
| "executable"
|
||||
| "data"
|
||||
| "data_local"
|
||||
| "audio"
|
||||
|
@ -77,9 +78,9 @@ declare namespace Deno {
|
|||
* Returns null if there is no applicable directory or if any other error
|
||||
* occurs.
|
||||
*
|
||||
* Argument values: "home", "cache", "config", "data", "data_local", "audio",
|
||||
* "desktop", "document", "download", "font", "picture", "public", "template",
|
||||
* "video"
|
||||
* Argument values: "home", "cache", "config", "executable", "data",
|
||||
* "data_local", "audio", "desktop", "document", "download", "font", "picture",
|
||||
* "public", "template", "video"
|
||||
*
|
||||
* "cache"
|
||||
* |Platform | Value | Example |
|
||||
|
@ -95,6 +96,13 @@ declare namespace Deno {
|
|||
* | macOS | `$HOME`/Library/Preferences | /Users/Alice/Library/Preferences |
|
||||
* | Windows | `{FOLDERID_RoamingAppData}` | C:\Users\Alice\AppData\Roaming |
|
||||
*
|
||||
* "executable"
|
||||
* |Platform | Value | Example |
|
||||
* | ------- | --------------------------------------------------------------- | -----------------------|
|
||||
* | Linux | `XDG_BIN_HOME` or `$XDG_DATA_HOME`/../bin or `$HOME`/.local/bin | /home/alice/.local/bin |
|
||||
* | macOS | - | - |
|
||||
* | Windows | - | - |
|
||||
*
|
||||
* "data"
|
||||
* |Platform | Value | Example |
|
||||
* | ------- | ---------------------------------------- | ---------------------------------------- |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue