https://github.com/axetroy/registry
Generic Registry for Git Repository
https://github.com/axetroy/registry
deno
Last synced: over 1 year ago
JSON representation
Generic Registry for Git Repository
- Host: GitHub
- URL: https://github.com/axetroy/registry
- Owner: axetroy
- License: mit
- Created: 2019-06-29T09:54:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T04:01:35.000Z (over 5 years ago)
- Last Synced: 2025-03-17T14:22:10.811Z (over 1 year ago)
- Topics: deno
- Language: TypeScript
- Homepage: https://repopod.now.sh
- Size: 44.9 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/axetroy/registry/actions)
## 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](https://github.com/denoland/registry/issues/117)
- [x] [Github](https://github.com)
- [x] [Gitlab](https://gitlab.com)
- [x] [Bitbucket](https://bitbucket.org)
- [x] [Gitee](https://gitee.com)
- [x] [Coding](https://coding.net)
- [x] [Aliyun](https://code.aliyun.com)
- [x] [Tencent Cloud Developer Platform](https://dev.tencent.com)
- [x] [Tencent Worker Bee](https://git.code.tencent.com)
- [x] [Not A Bug](https://notabug.org)
### Feel the Magic
```json
{
"imports": {
"github.com/": "https://repopod.now.sh/github.com/"
}
}
```
```ts
// 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`
```bash
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`
```typescript
// 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](LICENSE)