GithubHelp home page GithubHelp logo

kawarimidoll / pax.deno.dev Goto Github PK

View Code? Open in Web Editor NEW
23.0 2.0 1.0 72 KB

Access the modules on GitHub via Deno Deploy🦕

Home Page: https://pax.deno.dev/

License: MIT License

TypeScript 85.67% HTML 14.33%
deno deno-deploy deno-module deno-modules

pax.deno.dev's Introduction

pax.deno.dev

ci deno.land vr scripts LICENSE

Access the modules on GitHub via Deno Deploy sauropods

"pax" represents "packs" packs

Usage gear

https://pax.deno.dev/<owner>/<repo>[@branch_or_tag]/[path/to/file] redirects to https://raw.githubusercontent.com/<owner>/<repo>/[branch_or_tag]/[path/to/file].

  • owner and repo are required.
  • @branch_or_tag and path/to/file are optional.
    • If @branch_or_tag is skipped, use master implicitly. This works well even if your default branch is main.
    • If path/to/file is skipped, use mod.ts implicitly.

Bookmarklet

Use this bookmarklet in the GitHub repository page to copy URL to pax.deno.dev.

javascript:((d)=>((c,b,l)=>{c.textContent=(([,r="",,,t,f=""])=>`https://pax.deno.dev/${r}${t?"@"+t:""}${f}`)((l.origin+l.pathname).match(/^https:\/\/github\.com\/([^\/]+\/[^\/]+)(\/(tree|blob)\/([^\/]+))?(\/.*)?/)||[]);b.appendChild(c);c.select();d.execCommand("copy");b.removeChild(c);})(d.createElement("textArea"),d.body,location))(document)

Example rocket

mod.ts on the latest default branch

import { func } from "https://pax.deno.dev/owner/repo";

# same as:
# import { func } from "https://raw.githubusercontent.com/owner/repo/master/mod.ts";

The specific file on the latest default branch

import { func } from "https://pax.deno.dev/owner/repo/path/to/file.ts";

# same as:
# import { func } from "https://raw.githubusercontent.com/owner/repo/master/path/to/file.ts";

mod.ts on the specific branch or tag

import { func } from "https://pax.deno.dev/owner/repo@tag";

# same as:
# import { func } from "https://raw.githubusercontent.com/owner/repo/tag/mod.ts";

The specific file on the specific branch or tag

import { func } from "https://pax.deno.dev/owner/repo@tag/path/to/file.ts";

# same as:
# import { func } from "https://raw.githubusercontent.com/owner/repo/tag/path/to/file.ts";

Link to doc.deno.land

With the parameter d, the link to doc.deno.land is generated. The main part of URL should follow the syntax above.

https://pax.deno.dev/owner/repo?d

# same as:
# https://doc.deno.land/https/raw.githubusercontent.com/owner/repo/master/mod.ts

Prior arts art

  • This project is heavily inspired by Deno PKG.

pax.deno.dev's People

Contributors

kawarimidoll avatar web-flow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lgtm-migrator

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.