0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-30 09:08:00 -04:00
denoland-deno/cli/js/deno.ts

143 lines
3.4 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 {
Buffer,
readAll,
readAllSync,
writeAll,
writeAllSync
} from "./buffer.ts";
export { build, OperatingSystem, Arch } from "./build.ts";
export { chmodSync, chmod } from "./chmod.ts";
export { chownSync, chown } from "./chown.ts";
export { transpileOnly, compile, bundle } from "./compiler_api.ts";
export { inspect } from "./console.ts";
export { copyFileSync, copyFile } from "./copy_file.ts";
export {
Diagnostic,
DiagnosticCategory,
DiagnosticItem,
DiagnosticMessageChain
} from "./diagnostics.ts";
export { chdir, cwd } from "./dir.ts";
export { applySourceMap, formatDiagnostics } from "./ops/errors.ts";
2020-02-24 15:48:35 -05:00
export { errors } from "./errors.ts";
export { FileInfo } from "./file_info.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,
OpenOptions,
2018-12-13 16:20:37 -05:00
OpenMode
} from "./files.ts";
export { FsEvent, fsEvents } from "./ops/fs_events.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 { linkSync, link } from "./link.ts";
2019-02-13 08:50:15 -05:00
export {
makeTempDirSync,
makeTempDir,
2020-02-18 14:45:59 -05:00
makeTempFileSync,
makeTempFile,
MakeTempOptions
} from "./make_temp.ts";
export { metrics, Metrics } from "./ops/runtime.ts";
export { mkdirSync, mkdir, MkdirOptions } from "./mkdir.ts";
export {
2020-02-21 11:26:54 -05:00
Addr,
connect,
listen,
2020-02-21 11:26:54 -05:00
recvfrom,
UDPConn,
UDPAddr,
Listener,
Conn,
ShutdownMode,
shutdown
} from "./net.ts";
export {
dir,
env,
exit,
execPath,
hostname,
loadavg,
osRelease
} from "./ops/os.ts";
export {
permissions,
PermissionName,
PermissionState,
PermissionStatus,
Permissions
} from "./permissions.ts";
export { openPlugin } from "./plugins.ts";
export {
kill,
run,
RunOptions,
Process,
ProcessStatus,
Signal
} from "./process.ts";
2020-03-06 08:34:02 -05:00
export { readdirSync, readdir } from "./read_dir.ts";
export { readFileSync, readFile } from "./read_file.ts";
export { readlinkSync, readlink } from "./read_link.ts";
export { realpathSync, realpath } from "./realpath.ts";
export { removeSync, remove, RemoveOptions } from "./remove.ts";
export { renameSync, rename } from "./rename.ts";
export { resources, close } from "./ops/resources.ts";
2020-01-24 08:15:31 -05:00
export { signal, signals, SignalStream } from "./signals.ts";
export { statSync, lstatSync, stat, lstat } from "./stat.ts";
export { symlinkSync, symlink } from "./symlink.ts";
export { connectTLS, listenTLS } from "./tls.ts";
export { truncateSync, truncate } from "./truncate.ts";
export { isatty, setRaw } from "./ops/tty.ts";
export { utimeSync, utime } from "./utime.ts";
export { version } from "./version.ts";
export { writeFileSync, writeFile, WriteFileOptions } from "./write_file.ts";
export const args: string[] = [];
export { test, runTests } from "./testing.ts";
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";
/** 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;
export { symbols } from "./symbols.ts";