Skip to content

Commit 9b41fbe

Browse files
committed
Miscellaneous features in NodeJS
1 parent 718bd47 commit 9b41fbe

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

miscellaneous.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// The default operation of the path module varies based on the operating system on which a Node.js application is running.
2+
var path = require('path');
3+
4+
// The util module is primarily designed to support the needs of Node.js' own internal APIs.
5+
var util = require('util');
6+
7+
// The v8 module exposes APIs that are specific to the version of V8 built into the Node.js binary.
8+
var v8 = require('v8');
9+
10+
util.log(path.basename(__filename));
11+
12+
var dirUploads = path.join(__dirname, 'www', 'files', 'uploads');
13+
14+
util.log(dirUploads);
15+
util.log(v8.getHeapStatistics());

0 commit comments

Comments
 (0)