/denopkg.com

An easier way to use code from GitHub in your Deno project.

Primary LanguageTypeScript

denopkg

You wanna use a third-party library which is stored on GitHub in Deno?

Instead of writing:

import { opn } from 'https://raw.githubusercontent.com/hashrock/deno-opn/master/opn.ts'

opn('https://example.com')

You can write:

import { opn } from 'https://denopkg.com/hashrock/deno-opn/opn.ts'

opn('https://example.com')

Much shorter right? LOL.

Branches and tags are supported, just add @{BRANCH_OR_TAG} to the end of repository name, like this:

import { opn } from 'https://denopkg.com/hashrock/deno-opn@master/opn.ts'

opn('https://example.com')

Entry file

URLs omitting file path like https://denopkg.com/hashrock/deno-opn will be redirected to mod.ts on master branch.