Skip to content
TypeScript Version Manager
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib
spec
.gitignore
.travis.yml
CONTRIBUTING.md
README.md
package.json
power_assert.js

README.md

TVM

TypeScript Version Manager.

Badges

  • NPM Version
  • Build Status
  • Dependency Status
  • MIT LICENSE

Install

Using npm.

$ npm install -g tvm

Confirm.

$ tvm usage

Usage

tvm usage                  Show this message
tvm list                   List installed versions
tvm list known             List registry versions
tvm install <version>      Install a version
tvm install latest         Install a latest version
tvm use <version>          Use <version>
tvm tsc <file>             Compile <file>
tvm uninstall <version>    Uninstall a version
tvm clean                  Remove all source files

Example

Install.

$ tvm install 0.9.5
Searching...

Done

Switch use version.

$ tvm use 0.9.5
$ tvm tsc -v
Version 0.9.5

Use tsc.

$ tvm tsc foo.ts

View all installed version list.

$ tvm list
v0.9.5

View Remote version.

$ tvm list known
Searching...

v0.8.0
v0.8.1
v0.8.1-1
v0.8.2
v0.8.3
v0.9.0
v0.9.0-1
v0.9.1
v0.9.1-1
v0.9.5

Uninstall.

$ tvm uninstall 0.9.5

Done

Update tvm.

$ npm update -g tvm

Uninstall tvm.

$ npm uninstall -g tvm

Add tsc PATH

Add the following line to the end of your .bashrc or .zshrc.

alias tsc='tvm tsc'

Reload config.

$ source ~/.zshrc

Confirm.

$ tsc -v

Task runner plugins

Something went wrong with that request. Please try again.