@camjn/getargv 0.0.29 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/binding.gyp +3 -7
- package/dist/binding.js +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -32,6 +32,8 @@ get_argv_of_pid_as_string(some_process_id) //=> "arg0\x00arg1"
|
|
|
32
32
|
get_argv_of_pid_as_array(some_process_id) //=> ["arg0","arg1"]
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
+
Docs here: https://getargv.github.io/getargv.js/interfaces/GetArgv.html
|
|
36
|
+
|
|
35
37
|
## Development
|
|
36
38
|
|
|
37
39
|
After checking out the repo, run `npm i` to install dependencies. Then, run `npm run test` to run the tests. You can also run `npm run console` for an interactive prompt that will allow you to experiment.
|
package/binding.gyp
CHANGED
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
"targets": [{
|
|
3
3
|
"target_name": "getargv_native",
|
|
4
4
|
"sources": [ "src/getargv.c" ],
|
|
5
|
-
"defines": [ "_PID_MAX=<!@(man setaudit_addr |
|
|
6
|
-
"include_dirs": [
|
|
7
|
-
"<!@(pkg-config getargv --cflags-only-I | sed s/-I//g)",
|
|
8
|
-
],
|
|
5
|
+
"defines": [ "_PID_MAX=<!@(man -w setaudit_addr | xargs grep -Eoe 'PID_MAX \\([0-9]+\\)' | tr -Cd '0-9')" ],
|
|
6
|
+
"include_dirs": [ "<!@(pkg-config getargv --cflags-only-I | sed s/-I//g)" ],
|
|
9
7
|
"link_settings": {
|
|
10
|
-
"libraries": [
|
|
11
|
-
"<!@(pkg-config getargv --libs)",
|
|
12
|
-
]
|
|
8
|
+
"libraries": [ "<!@(pkg-config getargv --libs)" ]
|
|
13
9
|
},
|
|
14
10
|
"xcode_settings": {
|
|
15
11
|
"MACOSX_DEPLOYMENT_TARGET": "10.7"
|
package/dist/binding.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const addon = require('../build/Release/getargv_native');
|
|
2
|
+
const addon = require('../build/Release/getargv_native.node');
|
|
3
3
|
addon.as_string = function as_string(pid, encoding, nuls, skip, options) {
|
|
4
4
|
switch (arguments.length) {
|
|
5
5
|
case 0: throw new TypeError('The "pid" argument must be specified');
|
package/package.json
CHANGED
|
@@ -18,12 +18,13 @@
|
|
|
18
18
|
"name": "@camjn/getargv",
|
|
19
19
|
"homepage": "https://getargv.narzt.cam/",
|
|
20
20
|
"author": "Camden Narzt <getargv@narzt.cam>",
|
|
21
|
-
"version": "0.0.
|
|
21
|
+
"version": "0.0.31",
|
|
22
22
|
"description": "This library allows you to query the arguments of other processes on macOS.",
|
|
23
23
|
"main": "dist/binding.js",
|
|
24
24
|
"scripts": {
|
|
25
25
|
"prebuild": "tsc",
|
|
26
26
|
"build": "node-gyp configure build",
|
|
27
|
+
"rebuild": "node-gyp rebuild",
|
|
27
28
|
"pretest": "npm run build",
|
|
28
29
|
"test": "node --napi-modules ./test/test_binding.js",
|
|
29
30
|
"prepack": "npm run build",
|