mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
8 lines
401 B
TypeScript
8 lines
401 B
TypeScript
import {Server, version, mime} from 'node-static';
|
|
|
|
let server = new Server(__dirname);
|
|
let pathname = server.resolve('./tsconfig.json');
|
|
let mimetype = mime.lookup(pathname, '');
|
|
let versionNum = version.join('.');
|
|
console.log(`The node-static server constructed an instance of itself, fetched the mimetype of ${pathname} (${mimetype}), and has a version of ${versionNum}! The package is working.`);
|