Deno std packages in a single package
npm install deno-stdImport 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 that are browser compatible.
The package can be imported from
jsDelivr as
standard HTTPS JavaScript modules:
``html`
This package is also published in
NPM as deno-std.
``
npm install deno-std
`js
import { basename } from "deno-std/path/mod.js";
console.log(basename("/hello/world.html"));
`
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:
`ts
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 thejsDelivr
package
from ,
which probably is faster and with higher availability.
`ts
import { basename } from "https://cdn.jsdelivr.net/gh/oscarotero/std@1.0.0/path/mod.ts";
console.log(basename("/hello/world.html"));
``