dev-_007haste-server 1.1.2 → 1.2.0

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.
Files changed (3) hide show
  1. package/README.md +11 -11
  2. package/package.json +1 -1
  3. package/server.js +2 -1
package/README.md CHANGED
@@ -3,21 +3,21 @@ npm install express
3
3
  npm start
4
4
 
5
5
 
6
- +++ bashrc
7
- alias haste='node DATA/haste.server/server.js'
6
+ node node_modules/dev-_007haste-server/server.js
8
7
 
9
- # dev-_007haste-server
10
8
 
11
- `dev-_007haste-server` — это пакет для запуска сервера, который можно использовать для разработки и тестирования приложений. В этом файле приведены инструкции по установке, настройке и запуску сервера.
9
+ ))))
12
10
 
13
- ## Установка
14
11
 
15
- Для начала тебе нужно установить этот пакет в свой проект с помощью npm:
16
12
 
17
- 1. Перейди в директорию твоего проекта.
18
- 2. Открой терминал в этой директории.
19
- 3. Выполни команду:
20
13
 
21
- ```bash
22
- npm install dev-_007haste-server
14
+ https.createServer(sslOptions, app).listen(PORT, () => {
15
+ console.log(`HTTPS Server running at https://127.0.0.1:${PORT}`);
16
+ });
17
+
18
+ https.createServer(sslOptions, app).listen(PORT, () => {
19
+ console.log(`HTTPS Server running at https://ip.addr:${PORT}`);
20
+ });
21
+
22
+
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dev-_007haste-server",
3
- "version": "1.1.2",
3
+ "version": "1.2.0",
4
4
  "description": "Simple hastebin-like server with HTTPS",
5
5
  "main": "server.js",
6
6
  "scripts": {
package/server.js CHANGED
@@ -115,5 +115,6 @@ app.get('/data/:id', (req, res) => {
115
115
  });
116
116
 
117
117
  https.createServer(sslOptions, app).listen(PORT, () => {
118
- console.log(`HTTPS Server running at https://192.168.88.234:${PORT}`);
118
+ console.log(`HTTPS Server running at https://127.0.0.1:${PORT}`);
119
119
  });
120
+