UNPKG

jayvfs

Version:

virtual file system in node-js

12 lines (9 loc) 230 B
const jvfs = require('../jvfs'); let pwd = function() { if (jvfs.getWd()[0] === '/') { return jvfs.getWd().join('/'); } else { return '/' + jvfs.getWd().fullpath.join('/'); } }; module.exports = pwd;