1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00
denoland-deno/cli/js/deno.ts

84 lines
2.6 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
2020-07-06 21:45:39 -04:00
// This module exports stable Deno APIs.
export {
Buffer,
readAll,
readAllSync,
writeAll,
writeAllSync,
} from "./buffer.ts";
export { build } from "./build.ts";
export { chmodSync, chmod } from "./ops/fs/chmod.ts";
export { chownSync, chown } from "./ops/fs/chown.ts";
export { customInspect, inspect } from "./web/console.ts";
export { copyFileSync, copyFile } from "./ops/fs/copy_file.ts";
export { chdir, cwd } from "./ops/fs/dir.ts";
2020-02-24 15:48:35 -05:00
export { errors } from "./errors.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,
seek,
seekSync,
OpenOptions,
} from "./files.ts";
export { read, readSync, write, writeSync } from "./ops/io.ts";
export { FsEvent, watchFs } from "./ops/fs_events.ts";
export { internalSymbol as internal } from "./internals.ts";
2018-10-06 11:29:59 -04:00
export {
2018-10-08 03:19:18 -04:00
copy,
iter,
iterSync,
SeekMode,
2018-10-08 03:19:18 -04:00
Reader,
ReaderSync,
2018-10-08 03:19:18 -04:00
Writer,
WriterSync,
2018-10-08 03:19:18 -04:00
Closer,
Seeker,
} from "./io.ts";
2019-02-13 08:50:15 -05:00
export {
makeTempDirSync,
makeTempDir,
2020-02-18 14:45:59 -05:00
makeTempFileSync,
makeTempFile,
MakeTempOptions,
} from "./ops/fs/make_temp.ts";
export { metrics, Metrics } from "./ops/runtime.ts";
export { mkdirSync, mkdir, MkdirOptions } from "./ops/fs/mkdir.ts";
export { connect, listen, Listener, Conn } from "./net.ts";
export { env, exit, execPath } from "./ops/os.ts";
export { run, RunOptions, Process, ProcessStatus } from "./process.ts";
export { DirEntry, readDirSync, readDir } from "./ops/fs/read_dir.ts";
export { readFileSync, readFile } from "./read_file.ts";
export { readTextFileSync, readTextFile } from "./read_text_file.ts";
export { readLinkSync, readLink } from "./ops/fs/read_link.ts";
export { realPathSync, realPath } from "./ops/fs/real_path.ts";
export { removeSync, remove, RemoveOptions } from "./ops/fs/remove.ts";
export { renameSync, rename } from "./ops/fs/rename.ts";
export { resources, close } from "./ops/resources.ts";
export { FileInfo, statSync, lstatSync, stat, lstat } from "./ops/fs/stat.ts";
export { connectTls, listenTls } from "./tls.ts";
export { truncateSync, truncate } from "./ops/fs/truncate.ts";
export { isatty } from "./ops/tty.ts";
export { version } from "./version.ts";
export { writeFileSync, writeFile, WriteFileOptions } from "./write_file.ts";
export { writeTextFileSync, writeTextFile } from "./write_text_file.ts";
export const args: string[] = [];
export { TestDefinition, test } 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.
export { core } from "./core.ts";
export let pid: number;
export let noColor: boolean;