Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.142.144.163
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp_probe /
node_modules /
in-publish /
Delete
Unzip
Name
Size
Permission
Date
Action
test
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
.npmignore
609
B
-rw-r--r--
2015-01-13 02:54
LICENSE
752
B
-rw-r--r--
2015-01-13 04:10
README.md
1.1
KB
-rw-r--r--
2015-07-07 19:00
README.md~
1.03
KB
-rw-r--r--
2015-01-13 04:20
in-install.js
115
B
-rwxr-xr-x
2015-07-07 18:49
in-publish.js
115
B
-rwxr-xr-x
2015-07-07 18:49
index.js
666
B
-rw-r--r--
2015-07-07 18:52
not-in-install.js
115
B
-rwxr-xr-x
2015-07-07 18:54
not-in-publish.js
115
B
-rwxr-xr-x
2015-07-07 18:54
package.json
1.3
KB
-rw-r--r--
2021-02-04 21:24
Save
Rename
in-publish ========== Detect if we were run as a result of `npm publish`. This is intended to allow you to easily have prepublish lifecycle scripts that don't run when you run `npm install`. ``` $ npm install --save in-publish in-publish@1.0.0 node_modules/in-publish ``` Then edit your package.json to have: ```json "scripts": { "prepublish": "in-publish && thing-I-dont-want-on-dev-install || in-install" } ``` Now when you run: ``` $ npm install ``` Then `thing-I-dont-want-on-dev-install` won't be run, but... ``` $ npm publish ``` And `thing-I-dont-want-on-dev-install` will be run. Caveat Emptor ============= This detects that its running as a part of publish command in a terrible, terrible way. NPM dumps out its config object blindly into the environment prior to running commands. This includes the command line it was invoked with. This module determines if its being run as a result of publish by looking at that env var. This is not a part of the documented npm interface and so it is not guarenteed to be stable.