GitXplorerGitXplorer
k

deno-cache-injector

public
16 stars
2 forks
3 issues

Commits

List of commits on branch main.
Verified
7349e386a108f497b33c73ae7fd93cc879a87889

Merge pull request #1 from lambdalisue/modernize

kkuuote committed 4 years ago
Verified
396d7b0aa8fc2ce8e76f040375c60d7fd01b76f9

Show result

llambdalisue committed 4 years ago
Verified
0cb4af6db3a8b8f15a1d4d7778f8f3c7e688207b

Request permissions

llambdalisue committed 4 years ago
Verified
546889e40759466d261748e434c131de08d6153b

Rewrite usage

llambdalisue committed 4 years ago
Verified
d72abb0c5cb68f67e2510b589caaae86a22177ad

Rename denoDir to getCacheDir and define depsDir in the function

llambdalisue committed 4 years ago
Verified
8f39771ce7b1d80c8a2b97380f2e25e3b333e142

Add main() function

llambdalisue 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.