esm-pathnames
TypeScript icon, indicating that this package has built-in type declarations

1.0.15 • Public • Published

ESM-PathNames

You can use __dirname and __filename when using ESM(ECMAScript module).

Install

npm i esm-pathnames

Usage

import { getPathNames } from 'esm-pathnames';

const { __dirname, __filename } = getPathNames(import.meta);

Restrictions

  • The browser environment is not yet supported.

Dependents (1)

Package Sidebar

Install

npm i esm-pathnames

Weekly Downloads

21

Version

1.0.15

License

MIT

Unpacked Size

3.43 kB

Total Files

5

Last publish

Collaborators

  • bityoungjae