How to use the fs-plus.readFileSync function in fs-plus

To help you get started, we’ve selected a few fs-plus examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github atom / atom / src / compile-cache.js View on Github external
function readCachedJavaScript (relativeCachePath) {
  var cachePath = path.join(cacheDirectory, relativeCachePath)
  if (fs.isFileSync(cachePath)) {
    try {
      return fs.readFileSync(cachePath, 'utf8')
    } catch (error) {}
  }
  return null
}
github nylas-mail-lives / nylas-mail / packages / client-app / src / compile-cache.js View on Github external
function readCachedJavascript(relativeCachePath) {
  const cachePath = path.join(cacheDirectory, relativeCachePath)
  if (fs.isFileSync(cachePath)) {
    try {
      return fs.readFileSync(cachePath, 'utf8')
    } catch (error) {
      //
    }
  }
  return null
}
github nylas-mail-lives / nylas-mail / src / compile-cache.js View on Github external
function readCachedJavascript(relativeCachePath) {
  const cachePath = path.join(cacheDirectory, relativeCachePath)
  if (fs.isFileSync(cachePath)) {
    try {
      return fs.readFileSync(cachePath, 'utf8')
    } catch (error) {
      //
    }
  }
  return null
}

fs-plus

node's fs with more helpers

MIT
Latest version published 6 years ago

Package Health Score

50 / 100
Full package analysis