Skip to content

Commit 90052b2

Browse files
committed
Add node: for internal modules
1 parent 57e8e46 commit 90052b2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

JavaScript/1-HTTP/server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict';
22

3-
const http = require('http');
4-
const path = require('path');
5-
const fs = require('fs');
3+
const http = require('node:http');
4+
const path = require('node:path');
5+
const fs = require('node:fs');
66

77
const api = new Map();
88

JavaScript/2-WS/server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict';
22

3-
const http = require('http');
4-
const path = require('path');
5-
const fs = require('fs');
3+
const http = require('node:http');
4+
const path = require('node:path');
5+
const fs = require('node:fs');
66
const WebSocket = require('ws');
77

88
const api = new Map();

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019-2021 How.Programming.Works contributors
3+
Copyright (c) 2019-2022 How.Programming.Works contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy