How to use the memfs.fs.outputFileSync function in memfs

To help you get started, we’ve selected a few memfs 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 MarkBind / markbind / __mocks__ / fs-extra-promise.js View on Github external
fs.outputFileAsync = (file, data) => new Promise((resolve, reject) => {
  try {
    fs.outputFileSync(file, data);
    resolve();
  } catch (err) {
    reject(err);
  }
});
github MarkBind / markbind / __mocks__ / fs-extra-promise.js View on Github external
fs.outputJsonSync = (file, jsonData) => {
  fs.outputFileSync(file, JSON.stringify(jsonData));
};