2.0.1 • Published 1 month ago

@kreisler/dirname-for-module v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

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

2.0.1

1 month ago

2.0.0

1 month ago

1.0.7

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago