Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kuuote/deno-cache-injector
https://github.com/kuuote/deno-cache-injector
cache deno
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kuuote/deno-cache-injector
- Owner: kuuote
- License: mit
- Created: 2021-05-29T05:04:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-16T14:54:28.000Z (over 1 year ago)
- Last Synced: 2024-09-16T15:09:04.498Z (4 months ago)
- Topics: cache, deno
- Language: TypeScript
- Homepage:
- Size: 17.6 KB
- Stars: 16
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
This script will replace JavaScript/TypeScript files in the cache to files in
the particular directory.# Install
`$ deno install -n deno-cache-injector --allow-env --allow-read --allow-write https://deno.land/x/[email protected]/injector.ts`
# Permissions
Here's an overview of how deno-cache-injector uses permissions:
| Permission | Description |
| ---------- | -------------------------------------- |
| `env` | Access to $HOME for resolve cache path |
| `read` | Read `` |
| `write` | Write cache |# Usage
`deno-cache-injector ... `
### Options
| Option | Description |
| ------ | --------------------------------------------------- |
| -d | Delete cache (Only files that exists in `` |
| -s | Use symbolic link |
| -v | Display verbose log |### Arguments
| Argument | Description |
| ----------- | --------------------------------------------------------- |
| `` | A local directory path which is used to replace the cache |
| `` | A base URL of a library in the cache to replace |### Example
`deno-cache-injector ./denops-std-deno https://deno.land/x/[email protected]`
or
`deno-cache-injector -s ./denops-std-deno https://deno.land/x/[email protected]`
# License
This project is licensed under the MIT License. See [LICENSE](LICENSE.txt) for
details.