Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tani/lib.deno.dev
https://github.com/tani/lib.deno.dev
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tani/lib.deno.dev
- Owner: tani
- Created: 2021-08-15T00:02:24.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-02T11:53:55.000Z (8 months ago)
- Last Synced: 2024-10-05T09:25:07.508Z (about 1 month ago)
- Language: TypeScript
- Size: 85.9 KB
- Stars: 26
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# deno.land Version Aliasing
This service provides a version aliasing for deno library.
```typescript
// node-semver style
import abc from "https://lib.deno.dev/x/abc@~1.3/mod.ts"
import abc from "https://lib.deno.dev/x/abc@>=1.2/mod.ts"
import abc from "https://lib.deno.dev/x/abc@^1.2/mod.ts"
import abc from "https://lib.deno.dev/x/abc@1/mod.ts"
// weak semver style
import abc from "https://lib.deno.dev/x/abc@v1/mod.ts"
import abc from "https://lib.deno.dev/x/[email protected]/mod.ts"
import abc from "https://lib.deno.dev/x/[email protected]/mod.ts"
// ↓
import abc from "https://deno.land/x/[email protected]/mode.ts"
```## Motivation
In the modern CDN providers such as jsDelivr and unpkg, we can use the __version alias__ to retrieve a patch update without modifications. We bring this system to deno.land using Deno Deploy. You can get the latest compatible version every cache updates.
## Usage
This system is a drop-in replacement of the `deno.land`.
You need to replace `deno.land` by `lib.deno.dev`.## Support
Thank you for :star: GitHub stars and [:heart: GitHub Sponsors (@tani)](https://github.com/sponsors/tani)
## License
2021 © TANIGUCHI Masaya, [MIT License](https://masaya.mit-license.org)