Code Monkey home page Code Monkey logo

denox's Introduction

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

denox's People

Contributors

axetroy avatar renovate[bot] avatar renovate-bot avatar

Stargazers

Eliaz Bobadilla avatar Cora Sutton avatar Chee Shian Chuah avatar  avatar iceice avatar Shad Amethyst avatar 伊欧 avatar  avatar Eason avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

rkrx

denox's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.