1.0.15 • Published 3 years ago

esm-pathnames v1.0.15

Weekly downloads
4
License
MIT
Repository
github
Last release
3 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

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.3

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.12

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago