This is a generic registry for importing library from everywhere.
Currently supports most of the code hosting platforms on the market.
{
"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
require Deno v1.3.0
deno --allow-net --allow-env https://raw.githubusercontent.com/axetroy/registry/master/server.ts
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";
Author: axetroy
Demo: https://repopod.now.sh/
Source Code: https://github.com/axetroy/registry
#deno #nodejs #node #javascript