nodeswitch 1.9.0 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -33,6 +33,7 @@ nodeswitch use default
33
33
  nodeswitch list
34
34
 
35
35
  nodeswitch path
36
+ nodeswitch pathopen
36
37
  ```
37
38
 
38
39
  #### How To Uninstall
@@ -66,6 +66,8 @@ if not "%1" == "" (
66
66
  dir /b %AppData%\nodeswitch
67
67
  ) else if "%1" == "path" (
68
68
  echo %AppData%\nodeswitch
69
+ ) else if "%1" == "pathopen" (
70
+ powershell explorer "$(nodeswitch path)"
69
71
  ) else (
70
72
  echo Incorrect command
71
73
  )
@@ -67,6 +67,8 @@ if ( $nodeswitch1stParameter -ne $null ) {
67
67
  dir -n $env:AppData\nodeswitch
68
68
  } elseif ( $nodeswitch1stParameter -eq "path" ) {
69
69
  echo "$env:AppData\nodeswitch"
70
+ } elseif ( $nodeswitch1stParameter -eq "pathopen" ) {
71
+ explorer $(nodeswitch path)
70
72
  } else {
71
73
  echo "Incorrect command"
72
74
  }
package/bin/nodeswitch.sh CHANGED
@@ -81,6 +81,9 @@ then
81
81
  elif [ "$1" = "path" ]
82
82
  then
83
83
  echo "$APPDATA\nodeswitch"
84
+ elif [ "$1" = "pathopen" ]
85
+ then
86
+ start explorer $(nodeswitch path)
84
87
  else
85
88
  echo "Incorrect command"
86
89
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodeswitch",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "Node version switcher for Microsoft Windows x64",
5
5
  "scripts": {
6
6
  "preinstall": "node scripts/preinstall.js",