Skip to content

Commit 3d263cc

Browse files
committed
Add node: for internal modules
1 parent 12aa553 commit 3d263cc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

JavaScript/4-async.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const fs = require('fs');
3+
const fs = require('node:fs');
44

55
// args[0] - key
66
// args[args.length-1] - callback

JavaScript/5-sha.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const crypto = require('crypto');
3+
const crypto = require('node:crypto');
44

55
const argKey = (x) => x.toString() + ':' + typeof x;
66

JavaScript/6-metasync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const fs = require('fs');
3+
const fs = require('node:fs');
44

55
// Production implementation from Metasync library
66
// See: https://github.com/metarhia/metasync

JavaScript/7-metasync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const fs = require('fs');
3+
const fs = require('node:fs');
44
const metasync = require('metasync');
55

66
// Usage

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