Skip to content

Commit cc2e235

Browse files
committed
🔖 v0.7.1
1 parent 8e46fb0 commit cc2e235

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@ This is primarily achieved by using [shelljs/shelljs](https://github.com/shelljs
88
You can compare the final script code to `zx` example:
99
```javascript
1010
#!/usr/bin/env nodejsscript
11+
1112
echo(s.grep("name", "package.json"));
1213

13-
s.run("git branch --show-current").xargs(s.run, "dep deploy --branch={}");
14+
s.run("git branch --show-current")
15+
.xargs(s.run, "dep deploy --branch={}");
1416

1517
s.run("sleep 1; echo 1");
1618
s.run("sleep 2; echo 2");
1719
s.run("sleep 3; echo 3");
1820

19-
import { join } from "node:path";
2021
const name= "foo bar";
21-
s.mkdir(join(s.tempdir(), name));
22+
s.mkdir(cli.xdg.temp(name));
2223
```
2324
…also see [examples](./examples).
2425

2526
## Installation
2627

27-
1. tested/used on *NodeJS*: `node@v16.13.0` and `node@v17.9.1` ⇒ for installation follow [nvm-sh/nvm: Node Version Manager](https://github.com/nvm-sh/nvm)[^OR]
28-
1. `npm install https://github.com/jaandrle/nodejsscript --global` (**will be registered also in npm repository**)
29-
1. alternatively install locally
28+
1. tested/used on *NodeJS*: `node@v16.13.0` and `node@v17.9.1` ⇒ for installation follow [nvm-sh/nvm: Node Version Manager](https://github.com/nvm-sh/nvm)[^ORnpm]
29+
1. `npm install nodejsscript --location=global` … alternatively install locally: `npm install nodejsscript`[^ORnjs]
3030

3131
## Goods
3232
[s #shelljs](./docs/modules/s.md)
@@ -120,4 +120,5 @@ s.$("-g").rm("*.txt");
120120
- [Contributor Covenant Code of Conduc](./CODE_OF_CONDUCT.md)
121121
- [How to contribute](./CONTRIBUTING.md)
122122
123-
[^OR]: Alternatively `curl -sL install-node.vercel.app/16.13.0 | bash`
123+
[^ORnpm]: Alternatively `curl -sL install-node.vercel.app/16.13.0 | bash`
124+
[^ORnjs]: Or: `npm install https://github.com/jaandrle/nodejsscript --global`

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nodejsscript",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"author": "Jan Andrle <andrle.jan@centrum.cz>",
55
"license": "MIT",
66
"description": "A tool for writing better scripts",

0 commit comments

Comments
 (0)