Skip to main content

kek - the deno module

Usage

This module is a collection of simple scripts that a developer might find handy. To use it, simply type deno run https://deno.land/x/kek/mod.ts --help in your console and you will get an output like this:

$ deno run https://deno.land/x/kek/mod.ts --help
List of commands and their description:

  test:           This command is for testing this deno module.
  anotherCommand: This is the description of another command.
  ...:            ...

Syntax:
  deno run https://deno.land/x/kek/mod.ts <command>

If you want to know what a specific command can do and how to use it, simply type deno run https://deno.land/x/kek/mod.ts COMMAND --help.

For the command test this would result in the following:

$ deno run https://deno.land/x/kek/mod.ts test --help
This command is for testing this deno module.

    test simply responds with the given command line arguments.
    This way you can check if the alias settings are correct and how we implemented them.

Setting up an alias

Windows (PowerShell)

If you want to use kek as a command in your PowerShell, simply do the following steps:

  1. Create a profile.ps1 file with the following input (you can change the version number of kek for your liking):
function kekCommand {
    deno run https://deno.land/x/kek/mod.ts $args
}

Set-Alias kek kekCommand
  1. Save this file to either $Home\Documents (C:\Users\yourname\Documents) – only your user will be able to use kek OR to $PsHome (C:\Windows\System32\WindowsPowerShell\v1.0) – every PowerShell user will be able to use kek.
  2. Restart your PowerShell
  3. Profit

Linux (Bash)

If you want to use kek as a command in your linux bash, simply do the following steps:

  1. Edit either the ~/.bash_aliases or the ~/.bashrc file
  2. Append the new alias as alias kek='deno run https://deno.land/x/kek/mod.ts' and save the file
  3. Profit

MacOS (zsh)

coming soon…