1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-04 08:54:20 -05:00
denoland-deno/cli/js/deno.ts

128 lines
3.2 KiB
TypeScript
Raw Normal View History

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
// Public deno module.
export { dir, env, exit, isTTY, execPath, hostname } from "./os.ts";
export { chdir, cwd } from "./dir.ts";
2018-12-13 16:20:37 -05:00
export {
File,
open,
openSync,
2020-01-08 17:07:03 -05:00
create,
createSync,
2018-12-13 16:20:37 -05:00
stdin,
stdout,
stderr,
read,
readSync,
2018-12-13 16:20:37 -05:00
write,
writeSync,
seek,
seekSync,
2018-12-13 16:20:37 -05:00
close,
OpenMode
} from "./files.ts";
2018-10-06 11:29:59 -04:00
export {
EOF,
2018-10-08 03:19:18 -04:00
copy,
toAsyncIterator,
SeekMode,
2018-10-08 03:19:18 -04:00
Reader,
SyncReader,
2018-10-08 03:19:18 -04:00
Writer,
SyncWriter,
2018-10-08 03:19:18 -04:00
Closer,
Seeker,
SyncSeeker,
ReadCloser,
2018-10-08 03:19:18 -04:00
WriteCloser,
ReadSeeker,
WriteSeeker,
ReadWriteCloser,
ReadWriteSeeker
} 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
} 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";
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";
export {
permissions,
PermissionName,
PermissionState,
PermissionStatus,
Permissions
} from "./permissions.ts";
export { truncateSync, truncate } from "./truncate.ts";
export { FileInfo } from "./file_info.ts";
export { openPlugin } from "./plugins.ts";
export {
connect,
dial,
listen,
Listener,
Conn,
ShutdownMode,
shutdown
} from "./net.ts";
2019-10-21 14:38:28 -04:00
export { dialTLS, listenTLS } from "./tls.ts";
export { metrics, Metrics } from "./metrics.ts";
export { resources } from "./resources.ts";
export {
kill,
run,
RunOptions,
Process,
ProcessStatus,
Signal
} from "./process.ts";
export { transpileOnly, compile, bundle } from "./compiler_api.ts";
export { inspect, customInspect } from "./console.ts";
2019-09-09 23:39:42 -04:00
export { build, OperatingSystem, Arch } from "./build.ts";
export { version } from "./version.ts";
export const args: string[] = [];
2018-10-05 10:13:22 -04:00
// These are internal Deno APIs. We are marking them as internal so they do not
// appear in the runtime type library.
/** @internal */
export { core } from "./core.ts";
/** @internal */
export { setPrepareStackTrace } from "./error_stack.ts";
// TODO Don't expose Console nor stringifyArgs.
2019-02-13 08:50:15 -05:00
/** @internal */
export { Console, stringifyArgs } from "./console.ts";
// TODO Don't expose DomIterableMixin.
2019-02-13 08:50:15 -05:00
/** @internal */
export { DomIterableMixin } from "./mixins/dom_iterable.ts";
/** 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;