denox

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2019 License: MIT Imports: 8 Imported by: 0

README

Build Status Coverage Status Go Report Card Latest Version License Repo Size

Execute Deno script even if you don't have Deno installed

Why? It looks the same as Deno's command line, so why do I need such a tool? There are scenarios where I need to run the same script with different versions of Deno In such scenarios, Deno's version manager may not be the best option

Features

  • Cross platform support
  • Install Deno automatically
  • Support any version of Deno with environment variable DENO_VERSION
  • Fully compatible with Deno

Usage

# run script with latest version of Deno
$ denox https://deno.land/std/examples/welcome.ts
# run script with specific version of Deno
$ DENO_VERSION=v0.26.0 denox https://deno.land/std/examples/welcome.ts

Installation

If you are using Linux/MacOS. you can install it with following command:

# install latest version
wget -qO- https://raw.githubusercontent.com/axetroy/denox/master/install.sh | bash
# or install specified version
wget -qO- https://raw.githubusercontent.com/axetroy/denox/master/install.sh | bash -s v0.1.1

Or you can

Download the executable file for your platform at release page

Then set the environment variable.

eg, the executable file is in the ~/bin directory.

# ~/.bash_profile
export PATH="$PATH:~/bin"

finally, try it out.

$ denox https://deno.land/x/std/examples/welcome.ts

Build from source code

Make sure you have [email protected] installed.

$ git clone https://github.com/axetroy/denox.git $GOPATH/src/github.com/axetroy/denox
$ cd $GOPATH/src/github.com/axetroy/denox
$ make build

Test

$ make test

Uninstall

remove $HOME/.denox folder with following command:

$ rm -rf $HOME/.denox

License

The MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
fs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL