typemodule
A Node.js module that supplies what "type": "module" lacks.
Installation
$ npm i typemodule
Example
import { __dirname } from 'typemodule';
var myPath = __dirname + '/path/to/directory';
A Node.js module that supplies what "type": "module" lacks.
$ npm i typemodule
import { __dirname } from 'typemodule';
var myPath = __dirname + '/path/to/directory';
npm i typemodule
10
0.1.4
MIT
1.02 kB
3