mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 16:19:12 -05:00
bd88e56cbc
Do not confuse this with Node's Buffer. This is a direct port of Go's bytes.Buffer - it allows buffering of Reader and Writer objects.
49 lines
1.7 KiB
TypeScript
49 lines
1.7 KiB
TypeScript
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
|
|
|
|
// Public deno module.
|
|
/// <amd-module name="deno"/>
|
|
export { env, exit } from "./os";
|
|
export { chdir, cwd } from "./dir";
|
|
export { File, open, stdin, stdout, stderr, read, write, close } from "./files";
|
|
export {
|
|
copy,
|
|
toAsyncIterator,
|
|
ReadResult,
|
|
Reader,
|
|
Writer,
|
|
Closer,
|
|
Seeker,
|
|
ReaderCloser,
|
|
WriteCloser,
|
|
ReadSeeker,
|
|
WriteSeeker,
|
|
ReadWriteCloser,
|
|
ReadWriteSeeker
|
|
} from "./io";
|
|
export { Buffer } from "./buffer";
|
|
export { mkdirSync, mkdir } from "./mkdir";
|
|
export { makeTempDirSync, makeTempDir } from "./make_temp_dir";
|
|
export { chmodSync, chmod } from "./chmod";
|
|
export { removeSync, remove, removeAllSync, removeAll } from "./remove";
|
|
export { renameSync, rename } from "./rename";
|
|
export { readFileSync, readFile } from "./read_file";
|
|
export { readDirSync, readDir } from "./read_dir";
|
|
export { copyFileSync, copyFile } from "./copy_file";
|
|
export { readlinkSync, readlink } from "./read_link";
|
|
export { statSync, lstatSync, stat, lstat } from "./stat";
|
|
export { symlinkSync, symlink } from "./symlink";
|
|
export { writeFileSync, writeFile } from "./write_file";
|
|
export { ErrorKind, DenoError } from "./errors";
|
|
export { libdeno } from "./libdeno";
|
|
export { platform } from "./platform";
|
|
export { truncateSync, truncate } from "./truncate";
|
|
export { FileInfo } from "./file_info";
|
|
export { connect, dial, listen, Listener, Conn } from "./net";
|
|
export { metrics } from "./metrics";
|
|
export { resources } from "./resources";
|
|
export const args: string[] = [];
|
|
|
|
// Provide the compiler API in an obfuscated way
|
|
import * as compiler from "./compiler";
|
|
// @internal
|
|
export const _compiler = compiler;
|