dnssim 1.0.1 → 1.1.1
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/bin.sh +17 -0
- package/package.json +4 -1
package/bin.sh
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
#!/usr/bin/env bash
|
4
|
+
|
5
|
+
echo "pwd: `pwd`"
|
6
|
+
echo "\$0: $0"
|
7
|
+
echo "basename: `basename -- "$0"`"
|
8
|
+
echo "dirname: `dirname -- "$0"`"
|
9
|
+
echo "dirname/readlink: $( dirname -- "$( readlink -f -- "$0"; )"; )"
|
10
|
+
|
11
|
+
cd $( dirname -- "$( readlink -f -- "$0"; )"; )
|
12
|
+
if [[ "$1" == "deploy" ]]
|
13
|
+
then
|
14
|
+
npm run deploy
|
15
|
+
else
|
16
|
+
npm start
|
17
|
+
fi
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "dnssim",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.1.1",
|
4
4
|
"description": "protestware ware to send randomly genereated dns requests so that maybe att will let me change dns servers on my router",
|
5
5
|
"main": "main.js",
|
6
6
|
"scripts": {
|
@@ -10,6 +10,9 @@
|
|
10
10
|
"keywords": [
|
11
11
|
"dns"
|
12
12
|
],
|
13
|
+
"bin": {
|
14
|
+
"dnssim": "./bin.sh"
|
15
|
+
},
|
13
16
|
"author": "dvtate",
|
14
17
|
"license": "MIT"
|
15
18
|
}
|