How to use the readlinkSync function from graceful-fs

Find comprehensive JavaScript graceful-fs.readlinkSync code examples handpicked from public code repositorys.

503
504
505
506
507
508
509
510
511
512
513
514
exports.readFile = readFile;
exports.readFileSync = readFileSync;


// readlink
exports.readlink = Promise.promisify(fs.readlink);
exports.readlinkSync = fs.readlinkSync;


// realpath
exports.realpath = Promise.promisify(fs.realpath);
exports.realpathSync = fs.realpathSync;
fork icon9
star icon48
watch icon0

+ 7 other calls in file

208
209
210
211
212
213
214
215
216
217
218
219


exports.readBinLink = function (path) {
  if (isWindows) {
    return readCmdShim.sync(path)
  } else {
    return fs.readlinkSync(path)
  }
}


exports.skipIfWindows = function (why) {
fork icon0
star icon0
watch icon0

+ 3 other calls in file

132
133
134
135
136
137
138
139
140
141
142
143
  const resolvedDest = checkPaths(srcItem, destItem)
  return startCopy(resolvedDest, srcItem, destItem, opts)
}


function onLink (resolvedDest, src, dest, opts) {
  let resolvedSrc = fs.readlinkSync(src)


  if (opts.dereference) {
    resolvedSrc = path.resolve(process.cwd(), resolvedSrc)
  }
fork icon0
star icon0
watch icon0

+ 5 other calls in file