/registry

Generic Registry for Git Repository

Primary LanguageTypeScriptMIT LicenseMIT

Build Status

Deno registry

This is a generic registry for importing library from everywhere.

Currently supports most of the code hosting platforms on the market.

Related proposal

Feel the Magic

{
  "imports": {
    "github.com/": "https://repopod.now.sh/github.com/"
  }
}
// example.ts
import { get } from "github.com/axetroy/deno_process/mod.ts";

console.log("current process information: ", await get(Deno.pid));

Run with command line deno run --allow-run --importmap=import_map.json example.ts

How to setup

require Deno v1.3.0

deno --allow-net --allow-env https://raw.githubusercontent.com/axetroy/registry/master/server.ts

How to use it

Use the following format to import packages

https://repopod.now.sh/{domain}/{owner}/{repository}@{version}/filepath.ts

// Import modules in new ways
import { server } from "https://repopod.now.sh/std/http/server.ts";

import github from "https://repopod.now.sh/github.com/username/repository/mod.ts";
import gitlab from "https://repopod.now.sh/gitlab.com/username/repository/mod.ts";
import bitbucket from "https://repopod.now.sh/bitbucket.org/username/repository/mod.ts";
import gitee from "https://repopod.now.sh/gitee.com/username/repository/mod.ts";
import coding from "https://repopod.now.sh/coding.net/username/repository/mod.ts";

License

The MIT License