New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@axetroy/dvm

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axetroy/dvm

Fast and simple version manger for Deno without runtime dependencies

  • 1.3.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

dvm

English | 中文简体

Build Status Go Report Card Latest Version 996.icu Repo Size

dvm

dvm is a command-line tool to manage Deno versions.

Focus on the simplest way to manage versions.

Features:

  • Cross-platform support
  • Easy to use
  • No runtime dependencies
  • Zero configuration
  • Fully compatible with installed Deno
CommandDescription
dvm currentDisplay currently activated version of Deno
dvm lsList installed versions
dvm ls-remoteList remote versions available for install
dvm install <version> | latestDownload and install specified/latest Deno version
dvm uninstall <version>Uninstall specified Deno version
dvm use <version>Use specified Deno version
dvm unusedUnused Deno
dvm exec <version> [commands]Run Deno command on <version>
dvm upgrade [version]Upgrade dvm
dvm destroyUninstall dvm

Usage

Whether you have installed Deno or not will not affect the use of dvm.

# install
$ dvm install v0.26.0
$ deno -V
deno v0.26.0

# use another version
$ dvm install v0.25.0
$ dvm use v0.25.0
$ deno -V
deno v0.25.0

# uninstall deno
$ dvm uninstall v0.25.0

# for more command
$ dvm --help

Installation

If you have installed nodejs, you can install it via npm

npm install @axetroy/dvm -g

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

# install latest version
curl -fsSL -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/axetroy/dvm/master/install.sh | bash
# or install specified version
curl -fsSL -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/axetroy/dvm/master/install.sh | bash -s v1.3.10
# or install from gobinaries.com
curl -sf https://gobinaries.com/axetroy/dvm@v1.3.10 | sh

Or

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:$HOME/bin"

then, try it out.

dvm --help

Finally, to use Deno correctly, you also need to set environment variables

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

Upgrade

You can re-download the executable and overwrite the original file.

or run the following command to upgrade

$ dvm upgrade # upgrade to latest
$ dvm upgrade v0.2.0 # Update to specified version

Uninstall

run the following command to uninstall dvm or remove dvm executable file and $HOME/.dvm folder by manual

$ dvm destroy

Build from source code

Make sure you have Golang@v1.17.x installed.

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

Test

$ make test

justjavac/dvm Node.js implement

imbsky/dvm Reason implement

License

The Anti-996 License

FAQs

Package last updated on 05 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc