Skip to content

Commit 4242603

Browse files
committed
💡 ✏️
1 parent 622a1c2 commit 4242603

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# NodeJSScript – write cross-platform scripts with ease
2-
This package provides very similar functionality such as [google/zx](https://github.com/google/zx#chalk-package).
2+
This package provides very similar functionality such as [google/zx](https://github.com/google/zx).
33
Tke key difference is to provide unix shell commands in cross-platform commpatible way.
44
This is done by using [shelljs/shelljs](https://github.com/shelljs/shelljs) library.
55

6-
You can compare the final script code similar to `zx`:
6+
You can compare the final script code to `zx` example:
77
```javascript
88
#!/usr/bin/env nodejsscript
99
import { exec, grep, echo, mkdir, tempdir } from "nodejsscript";
@@ -42,7 +42,7 @@ Write your scripts in a file with an `.mjs` extension in order to
4242
use `await` at the top level. If you prefer the `.js` extension,
4343
wrap your scripts in something like `(async function () {...})()`.
4444

45-
Add the following shebang to the beginning of your `zx` scripts:
45+
Add the following shebang to the beginning of your `nodejsscript` scripts:
4646
```bash
4747
#!/usr/bin/env nodejsscript
4848
```
@@ -99,3 +99,5 @@ The [chalk](https://www.npmjs.com/package/chalk) package. Also as shorthand **s*
9999
echo(chalk.blue('Hello world!'));
100100
echo(s.blue('Hello world!'));
101101
```
102+
103+
[^node]: Alternatively `curl -sL install-node.vercel.app/17.0.1 | bash`

0 commit comments

Comments
 (0)