browse and pick your ECMAScript Modules - only for Linux.
This script fits perfectly to Deno. For example, you can choose one of the Deno Standard Modules and then import it directly with the URL which has been copied into your clipboard.
If you want to use this script for browsing through all the deno_std
ES
Modules run ./selectModule.sh <path>
where <path>
is the location of the
deno_std
repository on your device.
When you select an ES Module, the script will automatically copy a string - like the following one - into your clipboard:
import { serve } from "https://deno.land/std/http/server.ts";
- A path to a directory with containes files with ES Modules.
- An optional base URL. The default is:
https://deno.land/std
. - Keep or remove git tags from URL wit
-f
. - Optional deno options: For example:
--quiet
.
pickYourEsModule
consists of the two files selectModule.sh
and
getEsModules.js
which have to be in the same directory.
Furthermore it depends on xclip
or xsel
and rofi
or dmenu
.