File tree Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -56,3 +56,18 @@ console.log(joinPath);
56
56
// We can get the current working directory using the built-in cwd method
57
57
const current = Deno . cwd ( ) ;
58
58
console . log ( current ) ;
59
+
60
+ // We can get the directory name of the current module using the built-in
61
+ // dirname method
62
+ const dirname = import . meta. dirname ;
63
+ console . log ( dirname ) ;
64
+
65
+ // We can get the URL of the current module using the built-in
66
+ // url method
67
+ const url = import . meta. url ;
68
+ console . log ( url ) ;
69
+
70
+ // We can get the file name of the current module using the built-in
71
+ // filename method
72
+ const filename = import . meta. filename ;
73
+ console . log ( filename ) ;
Original file line number Diff line number Diff line change @@ -97,6 +97,17 @@ npm specifiers have the following format:
97
97
npm:<package-name>[@<version-requirement>][/<sub-path>]
98
98
```
99
99
100
+ This also allows functionality that may be familar from the ` npx ` command.
101
+
102
+ ``` console
103
+ # npx allows remote execution of a package from npm or a URL
104
+ $ npx create-next-app@latest
105
+
106
+ # deno run allows remote execution of a package from various locations,
107
+ # and can scoped to npm via the ` npm:` specifier.
108
+ $ deno run -A npm:create-next-app@latest
109
+ ```
110
+
100
111
For examples with popular libraries, please refer to the
101
112
[ tutorial section] ( /runtime/tutorials ) .
102
113
Original file line number Diff line number Diff line change @@ -127,7 +127,9 @@ console.log("This line is not ignored");
127
127
## Output Formats
128
128
129
129
By default we support Deno's own coverage format - but you can also output
130
- coverage reports in the lcov format, or in html.
130
+ coverage reports in the
131
+ [ lcov format] ( https://github.com/linux-test-project/lcov?tab=readme-ov-file ) (a
132
+ standard file format used to describe code coverage data), or in html.
131
133
132
134
``` bash
133
135
deno coverage --lcov --output=cov.lcov
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ below for more information on each subcommand.
21
21
## Dependency management
22
22
23
23
- [ deno add] ( /runtime/reference/cli/add ) - add dependencies
24
+ - deno cache - _ (Deprecated. Please use
25
+ [ deno install] ( /runtime/reference/cli/install/ ) )_
24
26
- [ deno install] ( /runtime/reference/cli/install/ ) - install a dependency or a
25
27
script
26
28
- [ deno uninstall] ( /runtime/reference/cli/uninstall/ ) - uninstall a dependency
You can’t perform that action at this time.
0 commit comments