tiny-dirname
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Tiny Dirname

A tiny isomorphic ESM alternative to Node's "__dirname" global.

Install

npm install --save tiny-dirname

Usage

import dirname from 'tiny-dirname';

dirname ( import.meta.url ); // => '/path/to'

License

MIT © Fabio Spampinato

Package Sidebar

Install

npm i tiny-dirname

Weekly Downloads

160

Version

1.0.1

License

none

Unpacked Size

3.3 kB

Total Files

9

Last publish

Collaborators

  • fabiospampinato