-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeps.ts
37 lines (31 loc) · 1.42 KB
/
deps.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// std
import * as fs from "https://deno.land/[email protected]/fs/mod.ts";
import * as log from "https://deno.land/[email protected]/log/mod.ts";
import * as path from "https://deno.land/[email protected]/path/mod.ts";
await log.setup({
handlers: {
console: new log.handlers.ConsoleHandler("DEBUG"),
file: new log.handlers.FileHandler("DEBUG", {
filename: `/tmp/deno-dsc-${new Date().getTime()}.log`,
formatter: "{levelName} {msg}",
}),
},
});
export { fs };
export { log };
export { path };
export { ensureSymlink } from "https://deno.land/[email protected]/fs/ensure_symlink.ts";
export { getFileInfoType } from "https://deno.land/[email protected]/fs/_util.ts";
export { ensureDir } from "https://deno.land/[email protected]/fs/ensure_dir.ts";
export { exists as dirExists } from "https://deno.land/[email protected]/fs/exists.ts";
export { assert } from "https://deno.land/[email protected]/testing/asserts.ts";
// buildin
export const deno = Deno;
// user land
export { digraph, toDot } from "https://deno.land/x/[email protected]/mod.ts";
export { download } from "https://deno.land/x/[email protected]/mod.ts";
export { isExecutable as isExecutableFile } from "https://deno.land/x/[email protected]/mod.ts";
// export { jsonTree } from "https://deno.land/x/json_tree/mod.ts";
export { jsonTree } from "https://raw.githubusercontent.com/satty1987/json_tree/master/mod.ts";
import * as opener from "https://deno.land/x/[email protected]/index.ts";
export const open = opener.open;