1.0.15 • Published 4 years ago

esm-pathnames v1.0.15

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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.
1.0.2

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.3

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.12

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago