Skip to content

Commit

Permalink
feat(esm): added alias for firname and filename
Browse files Browse the repository at this point in the history
  • Loading branch information
kedrzu committed Aug 28, 2023
1 parent 61598bc commit 1cc9202
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/esm/src/dirname.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ import { fileURLToPath } from 'url';
export function dirname(url: string): string {
return fileURLToPath(new URL('.', url));
}

export { dirname as getDirname };
2 changes: 2 additions & 0 deletions packages/esm/src/filename.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ import { fileURLToPath } from 'url';
export function filename(url: string) {
return fileURLToPath(url);
}

export { filename as getFilename };

0 comments on commit 1cc9202

Please sign in to comment.