GitXplorerGitXplorer
k

deno-cache-injector

public
16 stars
2 forks
3 issues

Commits

List of commits on branch main.
Unverified
d621481475ab8688174cd949d8c88e8adb45eb2b

Add CI

kkuuote committed 3 years ago
Unverified
4cbb5ba17c3e17e1ef6e1f7a95d8d09ed9818dca

Add DENO_DIR support

kkuuote committed 3 years ago
Unverified
882557ea1ec48c6bd91706e31447c547902b1bfb

Fix typo

kkuuote committed 4 years ago
Unverified
ff5518ccb0cb1be68f36580511b1ffa4d3abbd61

Change installation URL to deno.land

kkuuote committed 4 years ago
Unverified
7deac80273dfa40b65738ab5d3f0a22f000fc1cc

Add README

kkuuote committed 4 years ago
Unverified
352c42ecedb8e994619e578d6042292ff265dcc6

Add symlink and option support

kkuuote committed 4 years ago

README

The README file for this repository.

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/cache_injector@1.0.0/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 <libpath>
write Write cache

Usage

deno-cache-injector <option>... <libpath> <liburl>

Options

Option Description
-d Delete cache (Only files that exists in <libpath>
-s Use symbolic link
-v Display verbose log

Arguments

Argument Description
<libpath> A local directory path which is used to replace the cache
<liburl> A base URL of a library in the cache to replace

Example

deno-cache-injector ./denops-std-deno https://deno.land/x/denops_std@v0.10

or

deno-cache-injector -s ./denops-std-deno https://deno.land/x/denops_std@v0.10

License

This project is licensed under the MIT License. See LICENSE for details.