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
						
					
					
						7ff0a6a2d6 | 7 years ago | |
|---|---|---|
| .ci | 7 years ago | |
| docs | 7 years ago | |
| esy.lock | 7 years ago | |
| executable | 7 years ago | |
| feature_tests | 7 years ago | |
| library | 7 years ago | |
| test | 7 years ago | |
| .dockerignore | 7 years ago | |
| .gitignore | 7 years ago | |
| Dockerfile | 7 years ago | |
| README.md | 7 years ago | |
| azure-pipelines.yml | 7 years ago | |
| dune | 7 years ago | |
| dune-project | 7 years ago | |
| nsw.opam | 7 years ago | |
| package.json | 7 years ago | |
		
			
				
				README.md
			
		
		
			
			
		
	
	
  Node Switcher (nsw)  
A blazing fast and simple
nvmreplacement, built in native ReasonML. 🚀
 
Features
- Single file, easy installation ✨
- Fast fast fast fast 🚀
- Install multiple node versions without a hassle! 👏
- Project-specific .nvmrcfile support
Installation
- 
Download the latest release binary for your system 
- 
Make it available globally on $PATH
- 
Add the following line to your .bashrc/.zshrcfile:eval `nsw env`
TODO
- Feature: make versions complete the latest: 10would infer the latest minor and patch versions of node 10.10.1would 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 /tmpdirectory
- OSX: Add to homebrew?
- Windows Support?
- Linux: Replace curlusage withcohttp/ocurlor something else which is statically-linkable
- Linux: Replace tarwith 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