Skip to content

Commit

Permalink
fix: std version in readme (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayame113 authored Nov 25, 2022
1 parent 8f31b6f commit 4dad520
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ TypeScript + ES Modules
Transpile TypeScript on the fly and serve it from your server as ES Modules.

```ts
import { serve } from "https://deno.land/std@0.153.0/http/mod.ts";
import { serve } from "https://deno.land/std@0.166.0/http/mod.ts";
import { serveDirWithTs } from "https://deno.land/x/ts_serve@$VERSION/mod.ts";

serve((request) => serveDirWithTs(request));
Expand Down Expand Up @@ -54,22 +54,22 @@ await app.listen({ port: 8000 });
```

As a replacement for the
[serveDir](https://doc.deno.land/https://deno.land/std@0.153.0/http/file_server.ts/~/serveDir)
[serveDir](https://doc.deno.land/https://deno.land/std@0.166.0/http/file_server.ts/~/serveDir)
function in the Deno standard library:

```ts
import { serve } from "https://deno.land/std@0.153.0/http/mod.ts";
import { serve } from "https://deno.land/std@0.166.0/http/mod.ts";
import { serveDirWithTs } from "https://deno.land/x/ts_serve@$VERSION/mod.ts";

serve((request) => serveDirWithTs(request));
```

As a replacement for the
[serveFile](https://doc.deno.land/https://deno.land/std@0.153.0/http/file_server.ts/~/serveFile)
[serveFile](https://doc.deno.land/https://deno.land/std@0.166.0/http/file_server.ts/~/serveFile)
function in the Deno standard library:

```ts
import { serve } from "https://deno.land/std@0.153.0/http/mod.ts";
import { serve } from "https://deno.land/std@0.166.0/http/mod.ts";
import { serveFileWithTs } from "https://deno.land/x/ts_serve@$VERSION/mod.ts";

serve((request) => serveFileWithTs(request, "./mod.ts"));
Expand All @@ -96,7 +96,7 @@ server will force the wasm file to be read ahead. Otherwise the wasm file will
take about 3 seconds to load the first time it is transpiled.

```ts
import { serve } from "https://deno.land/std@0.153.0/http/mod.ts";
import { serve } from "https://deno.land/std@0.166.0/http/mod.ts";
import {
fourceInstantiateWasm,
serveDirWithTs,
Expand Down

0 comments on commit 4dad520

Please sign in to comment.