@kreisler/dirname-for-module
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

dirname-for-module

This package only works in esm module, config type: module in package.json

Install

npm install @kreisler/dirname-for-module

Usage

import { __dirname } from "@kreisler/dirname-for-module";
// or
import * as dfm from "@kreisler/dirname-for-module";
console.log(dfm.__dirname); // outputs "/path/to/the"

API

Type Document

Package Sidebar

Install

npm i @kreisler/dirname-for-module

Weekly Downloads

2

Version

2.0.1

License

MIT

Unpacked Size

2.98 kB

Total Files

4

Last publish

Collaborators

  • kreisler