You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Gal Schlezinger f9de4c152e Nsw 6 years ago
.ci Nsw 6 years ago
docs Nsw 6 years ago
esy.lock Nsw 6 years ago
executable Nsw 6 years ago
feature_tests Nsw 6 years ago
library Nsw 6 years ago
test Nsw 6 years ago
.dockerignore Nsw 6 years ago
.gitignore Nsw 6 years ago
Dockerfile Nsw 6 years ago
README.md Nsw 6 years ago
azure-pipelines.yml Nsw 6 years ago
dune initial 6 years ago
dune-project initial 6 years ago
nsw.opam initial 6 years ago
package.json Nsw 6 years ago

README.md

Node Switcher (nsw) Build Status

A simple and fast nvm replacement, built in native ReasonML.

🚀 Single executable 🚀 Blazing fast 🚀

Blazing fast

Features

Installation

  • Download the latest release binary for your system

  • Make it available globally on $PATH

  • Add the following line to your .bashrc/.zshrc file:

    eval `nsw env`
    

TODO

  • Feature: make versions complete the latest: 10 would infer the latest minor and patch versions of node 10. 10.1 would infer the latest patch version of node 10.1
  • Feature: nsw use --install, nsw use --quiet
  • Feature: nsw install lts?
  • Feature: nsw alias?
  • Feature: Consider nvm-like per-shell usage with symlinks on /tmp directory
  • OSX: Add to homebrew?
  • Windows Support?
  • Linux: Replace curl usage with cohttp/ocurl or something else which is statically-linkable
  • Linux: Replace tar with a statically linked library too (for ungzip + untar)

Developing:

npm install -g esy
git clone https://github.com/Schniz/nsw.git
esy install
esy build

Running Binary:

After building the project, you can run the main binary that is produced.

esy x nsw.exe

Running Tests:

# Runs some smoke-unity test
esy test

# Runs the feature tests
feature_tests/run.sh