1.1.8 • Published 5 months ago

deno-std v1.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Deno std

Import Deno std library using HTTP modules, in a single package, with no dependencies. Compatible with browsers, Node, Bun, and Deno.

Note: This package only includes stable APIs.

Use in browsers

The package can be imported from jsDelivr as standard HTTPS JavaScript modules:

<script type="module">
  import { basename } from "https://cdn.jsdelivr.net/gh/oscarotero/std@1.0.0/path/mod.js";

  console.log(basename("/hello/world.html"));
</script>

Use in Node/Bun

This package is also published in NPM as deno-std.

npm install deno-std
import { basename } from "deno-std/path/mod.js";

console.log(basename("/hello/world.html"));

Use in Deno

In Deno you can import the official @std packages from jsr.io. But if you prefer to manage a single version including all stable packages, you can import it from deno.land/x/_std:

import { basename } from "https://deno.land/x/_std@1.0.0/path/mod.ts";

console.log(basename("/hello/world.html"));

Due land/x repository is not maintained anymore by Deno, you can import the package from jsDelivr, which probably is faster and with higher availability.

import { basename } from "https://cdn.jsdelivr.net/gh/oscarotero/std@1.0.0/path/mod.ts";

console.log(basename("/hello/world.html"));
1.1.8

5 months ago

1.1.7

5 months ago

1.1.6

6 months ago

1.1.5

6 months ago

1.1.4

6 months ago

1.1.3

7 months ago

1.1.2

8 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago