@atomic-reactor/dirname

1.0.7 • Public • Published

Module to avoid the dumb choice to get rid of __dirname and __filename in Node 18+

Install

$ npm install --save @atomic-reactor/dirname

Usage

import { dirname, filename } from '@atomic-reactor/dirname';

const __dirname = dirname(import.meta.url);
const __filename = filename(import.meta.url);

Readme

Keywords

none

Package Sidebar

Install

npm i @atomic-reactor/dirname

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

1.5 kB

Total Files

5

Last publish

Collaborators

  • camdagr8
  • jdillick