6
6
<!-- PROJECT HEADER -->
7
7
<br />
8
8
<p align =" center " >
9
- <h3 align =" center " >_final-REMASTERED </h3 >
9
+ <h3 align =" center " >what-node-version </h3 >
10
10
11
11
<p align =" center " >
12
- Script for finding the final name
12
+ Script for automatically switch node versions based on the configured engine the the package.json
13
13
<br />
14
14
<br />
15
15
·
16
- <a href="https://github.com/beuluis/_final-REMASTERED /issues">Report Bug</a>
16
+ <a href="https://github.com/beuluis/what-node-version /issues">Report Bug</a>
17
17
·
18
- <a href="https://github.com/beuluis/_final-REMASTERED /issues">Request Feature</a>
18
+ <a href="https://github.com/beuluis/what-node-version /issues">Request Feature</a>
19
19
·
20
20
</p >
21
21
</p >
24
24
25
25
## About The Project
26
26
27
- Helps you find the perfect final name for your file
27
+ It tries to parse the specified engine in ` package.json ` . It used [ nvm ] ( https://github.com/nvm-sh/nvm ) to switch to the determined version.
28
28
29
29
## Usage
30
30
31
- ``` sh
32
- _final HelloWorld.js
31
+ ``` bash
32
+ wnv run start:dev
33
+ ```
34
+
35
+ or evan better: with an alias
36
+
37
+ ``` bash
38
+ echo ' alias npm="wnv"' >> ~ /.bashrc
39
+ npm run start:dev
33
40
```
34
41
35
42
## Installation
36
43
37
- ``` sh
38
- brew install beuluis/homebrew-tap/_final
44
+ ``` bash
45
+ brew install beuluis/homebrew-tap/wnv
39
46
```
40
47
41
48
or without brew
42
49
43
50
``` bash
44
- # installs to /usr/local/bin/_final
45
- curl -L https://raw.githubusercontent.com/beuluis/_final-REMASTERED /master/_final > /usr/local/bin/_final
46
- chmod 0755 /usr/local/bin/_final
51
+ # installs to /usr/local/bin/wnv
52
+ curl -L https://raw.githubusercontent.com/beuluis/what-node-version /master/wnv > /usr/local/bin/wnv
53
+ chmod 0755 /usr/local/bin/wnv
47
54
```
48
55
49
56
## Parameters
50
57
51
- | Parameter | Description | type |
52
- | ------------------ | ----------------------------------- | --------- |
53
- | ` -h --help ` | Show this usage summary and exit | - |
54
- | ` -e ` | Only echos back the generated names | - |
55
- | ` --use_separators ` | Use separators (e.g. . , - \_ ) | ` boolean ` |
56
- | ` --modifiers_max ` | Maximum modifiers to be generated | ` number ` |
58
+ | Parameter | Description |
59
+ | ----------- | ------------------------------- |
60
+ | ` -h --help ` | Show the usage summary and exit |
61
+
62
+ ### Force reload of node versions cache
63
+
64
+ Run command with the ` NO_CACHE ` environment variable set
65
+
66
+ ``` bash
67
+ NO_CACHE=1 wnv run some_command
68
+ ```
57
69
58
70
<!-- CONTRIBUTING -->
59
71
@@ -67,12 +79,6 @@ Contributions are what make the open source community such an amazing place to l
67
79
4 . Push to the Branch (` git push origin feature/AmazingFeature ` )
68
80
5 . Open a Pull Request
69
81
70
- ### Add more modifiers and separators
71
-
72
- Add them at the top of the script. Each line is a modifiers/separators.
73
-
74
- Modifiers and separators may only contain characters that are allowed in filenames.
75
-
76
82
<!-- CONTACT -->
77
83
78
84
## Contact
@@ -82,12 +88,12 @@ Luis Beu - me@luisbeu.de
82
88
<!-- MARKDOWN LINKS & IMAGES -->
83
89
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
84
90
85
- [ contributors-shield ] : https://img.shields.io/github/contributors/beuluis/_final-REMASTERED .svg?style=flat-square
86
- [ contributors-url ] : https://github.com/beuluis/_final-REMASTERED /graphs/contributors
87
- [ forks-shield ] : https://img.shields.io/github/forks/beuluis/_final-REMASTERED .svg?style=flat-square
88
- [ forks-url ] : https://github.com/beuluis/_final-REMASTERED /network/members
89
- [ stars-shield ] : https://img.shields.io/github/stars/beuluis/_final-REMASTERED .svg?style=flat-square
90
- [ stars-url ] : https://github.com/beuluis/_final-REMASTERED /stargazers
91
- [ issues-shield ] : https://img.shields.io/github/issues/beuluis/_final-REMASTERED .svg?style=flat-square
92
- [ issues-url ] : https://github.com/beuluis/_final-REMASTERED /issues
93
- [ license-shield ] : https://img.shields.io/github/license/beuluis/_final-REMASTERED .svg?style=flat-square
91
+ [ contributors-shield ] : https://img.shields.io/github/contributors/beuluis/what-node-version .svg?style=flat-square
92
+ [ contributors-url ] : https://github.com/beuluis/what-node-version /graphs/contributors
93
+ [ forks-shield ] : https://img.shields.io/github/forks/beuluis/what-node-version .svg?style=flat-square
94
+ [ forks-url ] : https://github.com/beuluis/what-node-version /network/members
95
+ [ stars-shield ] : https://img.shields.io/github/stars/beuluis/what-node-version .svg?style=flat-square
96
+ [ stars-url ] : https://github.com/beuluis/what-node-version /stargazers
97
+ [ issues-shield ] : https://img.shields.io/github/issues/beuluis/what-node-version .svg?style=flat-square
98
+ [ issues-url ] : https://github.com/beuluis/what-node-version /issues
99
+ [ license-shield ] : https://img.shields.io/github/license/beuluis/what-node-version .svg?style=flat-square
0 commit comments