1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
denoland-deno/js
Ryan Dahl 8f334ae568 Improve pretty printing of objects
If an object has more than 5 elements, it is printed in abbeviated form
displaying only the keys. This is useful in the REPL when inspecting
large objects like the Deno namespace:

  > Deno
  { args, noColor, pid, env, exit, isTTY, execPath, chdir, cwd, File,
  open, stdin, stdout, stderr, read, write, seek, close, copy,
  toAsyncIterator, SeekMode, Buffer, readAll, mkdirSync, mkdir,
  makeTempDirSync, makeTempDir, chmodSync, chmod, removeSync, remove,
  renameSync, rename, readFileSync, readFile, readDirSync, readDir,
  copyFileSync, copyFile, readlinkSync, readlink, statSync, lstatSync,
  stat, lstat, symlinkSync, symlink, writeFileSync, writeFile, ErrorKind,
  DenoError, libdeno, permissions, revokePermission, truncateSync,
  truncate, connect, dial, listen, metrics, resources, run, Process,
  inspect, build, platform, version, Console, stringifyArgs,
  DomIterableMixin }
2019-03-20 12:38:59 -04:00
..
deps/https/deno.land Upgrade deno_std to 395392 (#1902) 2019-03-07 20:19:39 -05:00
mixins Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
assets.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
blob.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
blob_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00
buffer.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
buffer_test.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
build.ts Make some renames in js/build.ts (#1912) 2019-03-11 20:34:48 -04:00
build_test.ts Rename Deno.build.gnArgs to Deno.build.args 2019-03-11 19:05:51 -04:00
chmod.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
chmod_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00
compiler.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
compiler_test.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
console.ts Improve pretty printing of objects 2019-03-20 12:38:59 -04:00
console_table.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
console_test.ts Improve pretty printing of objects 2019-03-20 12:38:59 -04:00
copy_file.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
copy_file_test.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
core.ts Integrate //core into existing code base 2019-03-18 17:17:08 -04:00
custom_event.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
custom_event_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00
deno.ts Make some renames in js/build.ts (#1912) 2019-03-11 20:34:48 -04:00
dir.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
dir_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00
dispatch.ts Integrate //core into existing code base 2019-03-18 17:17:08 -04:00
dom_file.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
dom_types.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
errors.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
event.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
event_target.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
event_target_test.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
event_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00
fetch.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
fetch_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00
file_info.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
file_test.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
files.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
files_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00
flatbuffers.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
form_data.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
form_data_test.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
format_error.ts Support scoped variables, unblock REPL async op, and REPL error colors (#1721) 2019-02-09 16:55:40 -05:00
globals.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
globals_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
headers.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
headers_test.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
io.ts Add seek and implement Seeker on File (#1797) 2019-02-18 18:26:41 -05:00
lib.web_assembly.d.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
libdeno.ts Integrate //core into existing code base 2019-03-18 17:17:08 -04:00
location.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
location_test.ts Add window.location 2019-02-18 23:04:59 -05:00
main.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
make_temp_dir.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
make_temp_dir_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00
metrics.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
metrics_test.ts Add Deno global namespace (#1748) 2019-02-12 10:08:56 -05:00
mkdir.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
mkdir_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00
mock_builtin.js chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
net.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
net_test.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
os.ts Integrate //core into existing code base 2019-03-18 17:17:08 -04:00
os_test.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
performance.ts Add performance.now (#1633) 2019-02-02 01:27:42 -05:00
performance_test.ts Add performance.now (#1633) 2019-02-02 01:27:42 -05:00
permissions.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
permissions_test.ts Remove 'deno' builtin module (#1895) 2019-03-07 21:56:56 -05:00
plugins.d.ts chore: update license lines (#1557) 2019-01-21 13:03:30 -06:00
process.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
process_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00
read_dir.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
read_dir_test.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
read_file.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
read_file_test.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
read_link.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
read_link_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00
remove.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
remove_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00
rename.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
rename_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00
repl.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
resources.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
resources_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00
stat.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
stat_test.ts Rename //src/ to //cli/ (#1962) 2019-03-19 12:18:05 -04:00
symlink.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
symlink_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00
test_util.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
text_encoding.ts Fix TextDecoder for SharedArrayBuffer backed TypedArray (#1940) 2019-03-15 16:29:54 -04:00
text_encoding_test.ts Fix TextDecoder for SharedArrayBuffer backed TypedArray (#1940) 2019-03-15 16:29:54 -04:00
timers.ts Make timers act like normal ops 2019-03-12 19:25:57 -04:00
timers_test.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
truncate.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
truncate_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00
types.ts Split out compiler snapshot (#1566) 2019-01-28 20:41:28 -05:00
unit_tests.ts Reorganize version and platform into Deno.build and Deno.version (#1879) 2019-03-06 16:54:58 -05:00
url.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
url_search_params.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
url_search_params_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00
url_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00
util.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
version.ts Reorganize version and platform into Deno.build and Deno.version (#1879) 2019-03-06 16:54:58 -05:00
version_test.ts Reorganize version and platform into Deno.build and Deno.version (#1879) 2019-03-06 16:54:58 -05:00
window.ts remove global_eval.ts (#1813) 2019-02-19 21:42:19 -05:00
workers.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
write_file.ts Migrate from tslint to eslint for linting (#1905) 2019-03-09 12:30:38 -05:00
write_file_test.ts Upgrade deno_std (#1892) 2019-03-06 20:48:46 -05:00