UNPKG
jayvfs
Version:
latest (0.1.1)
0.1.1
virtual file system in node-js
github.com/Anarcroth/jayVFS
Anarcroth/jayVFS
jayvfs
/
src
/
commands
/
pwd.js
12 lines
(9 loc)
•
230 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
const
jvfs =
require
(
'../jvfs'
);
let
pwd =
function
(
) {
if
(jvfs.
getWd
()[
0
] ===
'/'
) {
return
jvfs.
getWd
().
join
(
'/'
); }
else
{
return
'/'
+ jvfs.
getWd
().
fullpath
.
join
(
'/'
); } };
module
.
exports
= pwd;