GT2/GT2-iOS/node_modules/react-native/local-cli/link/android/fs.js

9 lines
239 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
const fs = require('fs-extra');
exports.readFile = (file) =>
() => fs.readFileSync(file, 'utf8');
exports.writeFile = (file, content) => content ?
fs.writeFileSync(file, content, 'utf8') :
(c) => fs.writeFileSync(file, c, 'utf8');