Skip to content

Commit 7b93c84

Browse files
committed
Path
1 parent f80b0c4 commit 7b93c84

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

path.mjs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import path from "path";
2+
3+
const file = "/Users/khannedy/contoh.txt";
4+
5+
console.info(path.dirname(file));
6+
console.info(path.basename(file));
7+
console.info(path.extname(file));

0 commit comments

Comments
 (0)