Skip to content

Commit 464066a

Browse files
committed
corrections/bug fix, update version
1 parent fe95eaa commit 464066a

File tree

4 files changed

+7
-42
lines changed

4 files changed

+7
-42
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
> Universal package installer, get the command for managing packages, or auto install any package, using one command for all platforms. E.g. `sudo apt-get install` *!@#$software* for Debian-based systems, would be `node-sys` *!@#$software*.
88
9-
This is mainly focused on initial installation of an Node JS package that needs additional host software installed. This allows pre and post script install routines. Can automate the installation of macOS Brew, and Windows Chocolatey package managers.
9+
This is mainly focused on initial installation of an Node JS packages that needs additional host software installed. This allows pre and post script install routines. Can also automate the installation of macOS Brew, and Windows Chocolatey package managers.
1010

1111
`node-sys` will try to find which system packaging is installed for the given `process.platform`. If no system package manager is found, `'No package manager found!'` is returned.
1212

@@ -54,7 +54,7 @@ installer('vim')
5454
});
5555
```
5656

57-
### CLI
57+
### CLI Usage
5858

5959
```s
6060
npm i -g node-sys
@@ -80,7 +80,7 @@ To install an System OS package manager.
8080
* Will install [brew] for **Apple macOS**
8181

8282
```s
83-
$ node-sys -g | --get
83+
$ node-sys -g | --get # or npm run get-installer
8484
...
8585
```
8686

bin/installer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import minimist from 'minimist';
55
import {
66
createRequire
77
} from 'module';
8-
import PowerShell from 'powershell';
98
import { spawn } from 'child_process';
109
import { dirname, join } from 'path';
1110
import { fileURLToPath } from 'url';
@@ -93,7 +92,7 @@ if (argv.help || argv.h) {
9392
});
9493

9594
child.stderr.on('data', (data) => {
96-
throw data.toString();
95+
throw (data.toString());
9796
});
9897
} else if (argv) {
9998
let args = argv._;

package-lock.json

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

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-sys",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Universal package installer, get the command for managing packages, or auto install any package, using one command for all platforms. Automate the installation of macOS Brew, and Windows Chocolatey package managers.",
55
"type": "module",
66
"main": "index.js",
@@ -60,8 +60,7 @@
6060
},
6161
"dependencies": {
6262
"which": "^2.0.2",
63-
"minimist": "1.2.5",
64-
"powershell": "2.3.2"
63+
"minimist": "1.2.5"
6564
},
6665
"devDependencies": {
6766
"chai": "^4.2.0",

0 commit comments

Comments
 (0)