deno/runtime/js
Matt Mastracci 2f8825a935
feat: Add deno serve subcommand (#23511)
By default, `deno serve` will assign port 8000 (like `Deno.serve`).
Users may choose a different port using `--port`.

`deno serve /tmp/file.ts`

`server.ts`:
```ts
export default {
  fetch(req) {
    return new Response("hello world!\n");
  },
};
```
2024-04-24 19:45:49 +00:00
..
01_errors.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
01_version.ts refactor: use core.ensureFastOps() (#21888) 2024-01-10 15:37:25 -07:00
06_util.js refactor: use web utils and lazy load utils from core (#22289) 2024-02-06 22:28:32 +01:00
10_permissions.js refactor: migrate extensions to virtual ops module (#22135) 2024-01-26 23:46:46 +01:00
11_workers.js fix(ext/node): allow automatic worker_thread termination (#22647) 2024-03-13 17:22:25 +00:00
13_buffer.js chore: update references to deno_std to use JSR (#23239) 2024-04-10 17:26:35 -04:00
30_os.js refactor: migrate extensions to virtual ops module (#22135) 2024-01-26 23:46:46 +01:00
40_fs_events.js FUTURE(ext/fs): remove Deno.FsWatcher.prototype.rid (#23234) 2024-04-07 17:46:39 +10:00
40_process.js refactor: migrate extensions to virtual ops module (#22135) 2024-01-26 23:46:46 +01:00
40_signals.js refactor: migrate extensions to virtual ops module (#22135) 2024-01-26 23:46:46 +01:00
40_tty.js chore: upgrade deno_core (#22725) 2024-03-06 15:08:10 -08:00
41_prompt.js refactor: migrate extensions to virtual ops module (#22135) 2024-01-26 23:46:46 +01:00
90_deno_ns.js feat(ext/http): Implement request.signal for Deno.serve (#23425) 2024-04-24 14:03:37 -04:00
98_global_scope_shared.js chore: update WPT (#23111) 2024-04-08 20:46:53 +02:00
98_global_scope_window.js refactor: use web utils and lazy load utils from core (#22289) 2024-02-06 22:28:32 +01:00
98_global_scope_worker.js refactor: use web utils and lazy load utils from core (#22289) 2024-02-06 22:28:32 +01:00
99_main.js feat: Add deno serve subcommand (#23511) 2024-04-24 19:45:49 +00:00
README.md feat: add --location=<href> and globalThis.location (#7369) 2021-01-07 19:06:08 +01:00

Runtime JavaScript Code

This directory contains Deno runtime code written in plain JavaScript.

Each file is a plain, old script, not ES modules. The reason is that snapshotting ES modules is much harder, especially if one needs to manipulate global scope (like in case of Deno).

Each file is prefixed with a number, telling in which order scripts should be loaded into V8 isolate. This is temporary solution and we're striving not to require specific order (though it's not 100% obvious if that's feasible).

Deno Web APIs

This directory facilities Web APIs that are available in Deno.

Please note, that some implementations might not be completely aligned with specification.

Some Web APIs are using ops under the hood, eg. console, performance.

Implemented Web APIs