Skip to content

Commit 7894fb5

Browse files
committed
first commit
1 parent c8238e0 commit 7894fb5

File tree

4 files changed

+197
-197
lines changed

4 files changed

+197
-197
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
### Project ###
2-
config.conf
2+
versions.txt
33

44
### Linux ###
55
*~

README.md

Lines changed: 39 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
<!-- PROJECT HEADER -->
77
<br />
88
<p align="center">
9-
<h3 align="center">_final-REMASTERED</h3>
9+
<h3 align="center">what-node-version</h3>
1010

1111
<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
1313
<br />
1414
<br />
1515
·
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>
1717
·
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>
1919
·
2020
</p>
2121
</p>
@@ -24,36 +24,48 @@
2424

2525
## About The Project
2626

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.
2828

2929
## Usage
3030

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
3340
```
3441

3542
## Installation
3643

37-
```sh
38-
brew install beuluis/homebrew-tap/_final
44+
```bash
45+
brew install beuluis/homebrew-tap/wnv
3946
```
4047

4148
or without brew
4249

4350
```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
4754
```
4855

4956
## Parameters
5057

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+
```
5769

5870
<!-- CONTRIBUTING -->
5971

@@ -67,12 +79,6 @@ Contributions are what make the open source community such an amazing place to l
6779
4. Push to the Branch (`git push origin feature/AmazingFeature`)
6880
5. Open a Pull Request
6981

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-
7682
<!-- CONTACT -->
7783

7884
## Contact
@@ -82,12 +88,12 @@ Luis Beu - me@luisbeu.de
8288
<!-- MARKDOWN LINKS & IMAGES -->
8389
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
8490

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

_final

Lines changed: 0 additions & 163 deletions
This file was deleted.

0 commit comments

Comments
 (0)