[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lionel-rowe/exports.deno.dev

Repository files navigation

exports.deno.dev

Import TypeScript directly from front-end JavaScript (via ESM imports). Prepend https://exports.deno.dev/s/ to a TypeScript URL to import.

TypeScript files are compiled on-the-fly upon first import, then cached. Because of this, versioned permalinks should always be used, as non-versioned URLs are liable to return stale code from the cache.

Examples

// static
import * as jsonc from 'https://exports.deno.dev/s/https://deno.land/std@0.211.0/jsonc/mod.ts'
import { marked } from 'https://exports.deno.dev/s/https://raw.githubusercontent.com/markedjs/marked/9514a93/src/marked.ts'

// dynamic
const html = await import('https://exports.deno.dev/s/https://deno.land/std@0.211.0/html/mod.ts')
const yaml = await import('https://exports.deno.dev/s/https://deno.land/std@0.211.0/yaml/mod.ts')

Releases

No releases published

Packages

No packages published