We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
resolve
1 parent 154cd80 commit b0856a0Copy full SHA for b0856a0
lib/node_modules/@stdlib/net/disposable-http-server/lib/main.js
@@ -20,7 +20,7 @@
20
21
// MODULES //
22
23
-var path = require( 'path' );
+var resolve = require( 'path' ).resolve;
24
var logger = require( 'debug' );
25
var objectKeys = require( '@stdlib/utils/keys' );
26
var createServer = require( '@stdlib/net/http-server' );
@@ -112,7 +112,7 @@ function httpServer( options ) {
112
if ( !opts.html ) {
113
debug( 'No HTML content provided.' );
114
debug( 'Loading a boilerplate HTML page...' );
115
- fpath = path.resolve( __dirname, 'static/index.html' );
+ fpath = resolve( __dirname, 'static/index.html' );
116
opts.html = readFileSync( fpath );
117
}
118
// Create a function to boot a server...
0 commit comments