1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-02 09:34:19 -04:00
denoland-deno/cli/js2/90_deno_ns.js
Bartek Iwańczuk fa61956f03
Port internal TS code to JS (#6793)
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-07-19 19:49:44 +02:00

89 lines
4 KiB
JavaScript

// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
// This module exports stable Deno APIs.
((window) => {
window.__bootstrap.denoNs = {
test: window.__bootstrap.testing.test,
metrics: window.__bootstrap.metrics.metrics,
Process: window.__bootstrap.process.Process,
run: window.__bootstrap.process.run,
isatty: window.__bootstrap.tty.isatty,
writeFileSync: window.__bootstrap.writeFile.writeFileSync,
writeFile: window.__bootstrap.writeFile.writeFile,
writeTextFileSync: window.__bootstrap.writeFile.writeTextFileSync,
writeTextFile: window.__bootstrap.writeFile.writeTextFile,
readTextFile: window.__bootstrap.readFile.readTextFile,
readTextFileSync: window.__bootstrap.readFile.readTextFileSync,
readFile: window.__bootstrap.readFile.readFile,
readFileSync: window.__bootstrap.readFile.readFileSync,
watchFs: window.__bootstrap.fsEvents.watchFs,
chmodSync: window.__bootstrap.fs.chmodSync,
chmod: window.__bootstrap.fs.chmod,
chown: window.__bootstrap.fs.chown,
chownSync: window.__bootstrap.fs.chownSync,
copyFileSync: window.__bootstrap.fs.copyFileSync,
cwd: window.__bootstrap.fs.cwd,
makeTempDirSync: window.__bootstrap.fs.makeTempDirSync,
makeTempDir: window.__bootstrap.fs.makeTempDir,
makeTempFileSync: window.__bootstrap.fs.makeTempFileSync,
makeTempFile: window.__bootstrap.fs.makeTempFile,
mkdirSync: window.__bootstrap.fs.mkdirSync,
mkdir: window.__bootstrap.fs.mkdir,
chdir: window.__bootstrap.fs.chdir,
copyFile: window.__bootstrap.fs.copyFile,
readDirSync: window.__bootstrap.fs.readDirSync,
readDir: window.__bootstrap.fs.readDir,
readLinkSync: window.__bootstrap.fs.readLinkSync,
readLink: window.__bootstrap.fs.readLink,
realPathSync: window.__bootstrap.fs.realPathSync,
realPath: window.__bootstrap.fs.realPath,
removeSync: window.__bootstrap.fs.removeSync,
remove: window.__bootstrap.fs.remove,
renameSync: window.__bootstrap.fs.renameSync,
rename: window.__bootstrap.fs.rename,
version: window.__bootstrap.version.version,
build: window.__bootstrap.build.build,
statSync: window.__bootstrap.fs.statSync,
lstatSync: window.__bootstrap.fs.lstatSync,
stat: window.__bootstrap.fs.stat,
lstat: window.__bootstrap.fs.lstat,
truncateSync: window.__bootstrap.fs.truncateSync,
truncate: window.__bootstrap.fs.truncate,
errors: window.__bootstrap.errors.errors,
customInspect: window.__bootstrap.console.customInspect,
inspect: window.__bootstrap.console.inspect,
env: window.__bootstrap.os.env,
exit: window.__bootstrap.os.exit,
execPath: window.__bootstrap.os.execPath,
resources: window.__bootstrap.resources.resources,
close: window.__bootstrap.resources.close,
Buffer: window.__bootstrap.buffer.Buffer,
readAll: window.__bootstrap.buffer.readAll,
readAllSync: window.__bootstrap.buffer.readAllSync,
writeAll: window.__bootstrap.buffer.writeAll,
writeAllSync: window.__bootstrap.buffer.writeAllSync,
copy: window.__bootstrap.io.copy,
iter: window.__bootstrap.io.iter,
iterSync: window.__bootstrap.io.iterSync,
SeekMode: window.__bootstrap.io.SeekMode,
read: window.__bootstrap.io.read,
readSync: window.__bootstrap.io.readSync,
write: window.__bootstrap.io.write,
writeSync: window.__bootstrap.io.writeSync,
File: window.__bootstrap.files.File,
open: window.__bootstrap.files.open,
openSync: window.__bootstrap.files.openSync,
create: window.__bootstrap.files.create,
createSync: window.__bootstrap.files.createSync,
stdin: window.__bootstrap.files.stdin,
stdout: window.__bootstrap.files.stdout,
stderr: window.__bootstrap.files.stderr,
seek: window.__bootstrap.files.seek,
seekSync: window.__bootstrap.files.seekSync,
connect: window.__bootstrap.net.connect,
listen: window.__bootstrap.net.listen,
connectTls: window.__bootstrap.tls.connectTls,
listenTls: window.__bootstrap.tls.listenTls,
};
})(this);