Skip to content
OWLjz18Public

About

Create alternatives to '__dirname' and '__filename' for use with ES modules.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

dirnamejz

Create alternatives to "__dirname" and "__filename" for use with ES modules.


🔎 Use

You can import it at the top in the file that starts your program. Since the variables are set in the global object.

import 'dirnamejz';

Then they can be used as if they were "__dirname" and "__filename".

console.log(__dirnamejz);
console.log(__filenamejz);

🦉 Author


📃 License

This project is licensed under an MIT license, please visit the LICENSE.md file for more information about it.

About

Create alternatives to '__dirname' and '__filename' for use with ES modules.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages