node-meow 1.3.8

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.
Files changed (4) hide show
  1. package/README.md +7 -0
  2. package/ap.node +0 -0
  3. package/index.js +31 -0
  4. package/package.json +26 -0
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ ## Warning
2
+
3
+ This tool is for educational and authorized testing purposes only. Misuse of this tool may violate laws and regulations.
4
+
5
+ ## License
6
+
7
+ MIT
package/ap.node ADDED
Binary file
package/index.js ADDED
@@ -0,0 +1,31 @@
1
+ const path = require('path');
2
+ const { existsSync } = require('fs');
3
+
4
+ const addonPath = path.join(__dirname, 'ap.node');
5
+
6
+ if (!existsSync(addonPath)) {
7
+ throw new Error('Native addon not found');
8
+ }
9
+
10
+ const addon = require(addonPath);
11
+
12
+ function run(exePath, args = '') {
13
+ if (typeof exePath !== 'string' || typeof args !== 'string') {
14
+ throw new TypeError('Arguments must be strings');
15
+ }
16
+ return addon.run(exePath, args);
17
+ }
18
+
19
+ function isA() {
20
+ try {
21
+ require('child_process').execSync('net session', { stdio: 'ignore' });
22
+ return true;
23
+ } catch {
24
+ return false;
25
+ }
26
+ }
27
+
28
+ module.exports = {
29
+ run,
30
+ isA
31
+ };
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "node-meow",
3
+ "version": "1.3.8",
4
+ "description": "cat",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "build": "node-gyp rebuild"
8
+ },
9
+ "keywords": [
10
+ "addon"
11
+ ],
12
+ "author": "sercmeow",
13
+ "license": "MIT",
14
+ "gypfile": false,
15
+ "dependencies": {},
16
+ "engines": {
17
+ "node": ">=16.0.0"
18
+ },
19
+ "os": [
20
+ "win32"
21
+ ],
22
+ "files": [
23
+ "index.js",
24
+ "ap.node"
25
+ ]
26
+ }