1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 01:29:14 -05:00
denoland-deno/cli/tests
Bartek Iwańczuk 60688c563e
feat: import.meta.filename and import.meta.dirname (#22061)
This commit adds `import.meta.filename` and `import.meta.dirname` APIs.

These APIs return string representation of filename and containing
dirname.
They are only defined for local modules (modules that have `file:///`
scheme).

Example:

```ts
console.log(import.meta.filename, import.meta.dirname)
```

Unix:
```
$ deno run /dev/my_module.ts
/dev/my_module.ts /dev/
```

Windows:
```
$ deno run C:\dev\my_module.ts
C:\dev\my_module.ts C:\
```
2024-01-23 23:51:07 +01:00
..
integration feat: import.meta.filename and import.meta.dirname (#22061) 2024-01-23 23:51:07 +01:00
node_compat feat(web): ImageBitmap (#21898) 2024-01-22 12:08:01 +01:00
testdata feat: import.meta.filename and import.meta.dirname (#22061) 2024-01-23 23:51:07 +01:00
unit refactor: set removal version for Deno.ListenTlsOptions.certFile, Deno.ListenTlsOptions.keyFile and Deno.ConnectTlsOptions.certFile (#22026) 2024-01-23 17:35:23 +01:00
unit_node fix(ext/node): fix no arg call of fs.promises.readFile (#22030) 2024-01-23 12:59:39 +09:00
integration_tests.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00