2020-01-02 15:13:47 -05:00
|
|
|
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
2018-10-19 15:25:29 -04:00
|
|
|
|
2018-07-06 11:20:35 -04:00
|
|
|
// Public deno module.
|
2019-12-18 09:29:00 -05:00
|
|
|
export { dir, env, exit, isTTY, execPath, hostname } from "./os.ts";
|
2019-09-02 17:07:11 -04:00
|
|
|
export { chdir, cwd } from "./dir.ts";
|
2018-12-13 16:20:37 -05:00
|
|
|
export {
|
|
|
|
File,
|
|
|
|
open,
|
2019-03-27 23:29:36 -04:00
|
|
|
openSync,
|
2020-01-08 17:07:03 -05:00
|
|
|
create,
|
|
|
|
createSync,
|
2018-12-13 16:20:37 -05:00
|
|
|
stdin,
|
|
|
|
stdout,
|
|
|
|
stderr,
|
|
|
|
read,
|
2019-03-27 23:29:36 -04:00
|
|
|
readSync,
|
2018-12-13 16:20:37 -05:00
|
|
|
write,
|
2019-03-27 23:29:36 -04:00
|
|
|
writeSync,
|
2019-02-18 18:26:41 -05:00
|
|
|
seek,
|
2019-03-27 23:29:36 -04:00
|
|
|
seekSync,
|
2018-12-13 16:20:37 -05:00
|
|
|
close,
|
2020-01-21 04:49:42 -05:00
|
|
|
OpenOptions,
|
2018-12-13 16:20:37 -05:00
|
|
|
OpenMode
|
2019-09-02 17:07:11 -04:00
|
|
|
} from "./files.ts";
|
2018-10-06 11:29:59 -04:00
|
|
|
export {
|
2019-07-06 10:16:03 -04:00
|
|
|
EOF,
|
2018-10-08 03:19:18 -04:00
|
|
|
copy,
|
2018-10-31 10:29:13 -04:00
|
|
|
toAsyncIterator,
|
2019-02-18 18:26:41 -05:00
|
|
|
SeekMode,
|
2018-10-08 03:19:18 -04:00
|
|
|
Reader,
|
2019-03-27 23:29:36 -04:00
|
|
|
SyncReader,
|
2018-10-08 03:19:18 -04:00
|
|
|
Writer,
|
2019-03-27 23:29:36 -04:00
|
|
|
SyncWriter,
|
2018-10-08 03:19:18 -04:00
|
|
|
Closer,
|
|
|
|
Seeker,
|
2019-03-27 23:29:36 -04:00
|
|
|
SyncSeeker,
|
2018-10-26 12:14:06 -04:00
|
|
|
ReadCloser,
|
2018-10-08 03:19:18 -04:00
|
|
|
WriteCloser,
|
|
|
|
ReadSeeker,
|
|
|
|
WriteSeeker,
|
|
|
|
ReadWriteCloser,
|
|
|
|
ReadWriteSeeker
|
2019-09-02 17:07:11 -04:00
|
|
|
} from "./io.ts";
|
|
|
|
export {
|
|
|
|
Buffer,
|
|
|
|
readAll,
|
|
|
|
readAllSync,
|
|
|
|
writeAll,
|
|
|
|
writeAllSync
|
|
|
|
} from "./buffer.ts";
|
|
|
|
export { mkdirSync, mkdir } from "./mkdir.ts";
|
2019-02-13 08:50:15 -05:00
|
|
|
export {
|
|
|
|
makeTempDirSync,
|
|
|
|
makeTempDir,
|
|
|
|
MakeTempDirOptions
|
2019-09-02 17:07:11 -04:00
|
|
|
} from "./make_temp_dir.ts";
|
|
|
|
export { chmodSync, chmod } from "./chmod.ts";
|
|
|
|
export { chownSync, chown } from "./chown.ts";
|
|
|
|
export { utimeSync, utime } from "./utime.ts";
|
|
|
|
export { removeSync, remove, RemoveOption } from "./remove.ts";
|
|
|
|
export { renameSync, rename } from "./rename.ts";
|
2019-11-26 03:40:57 -05:00
|
|
|
export { realpathSync, realpath } from "./realpath.ts";
|
2019-09-02 17:07:11 -04:00
|
|
|
export { readFileSync, readFile } from "./read_file.ts";
|
|
|
|
export { readDirSync, readDir } from "./read_dir.ts";
|
|
|
|
export { copyFileSync, copyFile } from "./copy_file.ts";
|
|
|
|
export { readlinkSync, readlink } from "./read_link.ts";
|
|
|
|
export { statSync, lstatSync, stat, lstat } from "./stat.ts";
|
|
|
|
export { linkSync, link } from "./link.ts";
|
|
|
|
export { symlinkSync, symlink } from "./symlink.ts";
|
|
|
|
export { writeFileSync, writeFile, WriteFileOptions } from "./write_file.ts";
|
|
|
|
export { applySourceMap } from "./error_stack.ts";
|
|
|
|
export { ErrorKind, DenoError } from "./errors.ts";
|
2019-03-04 11:04:19 -05:00
|
|
|
export {
|
|
|
|
permissions,
|
2019-10-27 11:22:53 -04:00
|
|
|
PermissionName,
|
|
|
|
PermissionState,
|
|
|
|
PermissionStatus,
|
2019-03-04 11:04:19 -05:00
|
|
|
Permissions
|
2019-09-02 17:07:11 -04:00
|
|
|
} from "./permissions.ts";
|
|
|
|
export { truncateSync, truncate } from "./truncate.ts";
|
|
|
|
export { FileInfo } from "./file_info.ts";
|
2019-12-05 15:30:20 -05:00
|
|
|
export { openPlugin } from "./plugins.ts";
|
2019-12-29 10:20:23 -05:00
|
|
|
export {
|
|
|
|
connect,
|
|
|
|
listen,
|
|
|
|
Listener,
|
|
|
|
Conn,
|
|
|
|
ShutdownMode,
|
|
|
|
shutdown
|
|
|
|
} from "./net.ts";
|
2020-01-18 12:35:12 -05:00
|
|
|
export { connectTLS, listenTLS } from "./tls.ts";
|
2019-09-02 17:07:11 -04:00
|
|
|
export { metrics, Metrics } from "./metrics.ts";
|
|
|
|
export { resources } from "./resources.ts";
|
2019-04-21 21:26:56 -04:00
|
|
|
export {
|
|
|
|
kill,
|
|
|
|
run,
|
|
|
|
RunOptions,
|
|
|
|
Process,
|
|
|
|
ProcessStatus,
|
|
|
|
Signal
|
2019-09-02 17:07:11 -04:00
|
|
|
} from "./process.ts";
|
2020-01-08 09:17:44 -05:00
|
|
|
export { transpileOnly, compile, bundle } from "./compiler_api.ts";
|
2020-01-16 19:42:58 -05:00
|
|
|
export { inspect } from "./console.ts";
|
2020-01-24 08:15:31 -05:00
|
|
|
export { signal, signals, SignalStream } from "./signals.ts";
|
2019-09-09 23:39:42 -04:00
|
|
|
export { build, OperatingSystem, Arch } from "./build.ts";
|
2019-09-02 17:07:11 -04:00
|
|
|
export { version } from "./version.ts";
|
2018-09-22 08:47:44 -04:00
|
|
|
export const args: string[] = [];
|
2018-10-05 10:13:22 -04:00
|
|
|
|
2019-03-26 08:22:07 -04:00
|
|
|
// These are internal Deno APIs. We are marking them as internal so they do not
|
|
|
|
// appear in the runtime type library.
|
|
|
|
/** @internal */
|
2019-09-02 17:07:11 -04:00
|
|
|
export { core } from "./core.ts";
|
2019-03-26 08:22:07 -04:00
|
|
|
|
2019-09-02 17:07:11 -04:00
|
|
|
/** The current process id of the runtime. */
|
|
|
|
export let pid: number;
|
|
|
|
|
|
|
|
/** Reflects the NO_COLOR environment variable: https://no-color.org/ */
|
|
|
|
export let noColor: boolean;
|
2020-01-16 19:42:58 -05:00
|
|
|
|
|
|
|
export { symbols } from "./symbols.ts";
|