mirror of
https://github.com/all-contributors/cli.git
synced 2025-01-10 05:56:29 +00:00
16 lines
243 B
JavaScript
16 lines
243 B
JavaScript
'use strict';
|
|
|
|
var fs = require('fs');
|
|
|
|
function read(filePath, cb) {
|
|
fs.readFile(filePath, 'utf8', cb);
|
|
}
|
|
|
|
function write(filePath, content, cb) {
|
|
fs.writeFile(filePath, content, cb);
|
|
}
|
|
|
|
module.exports = {
|
|
read: read,
|
|
write: write
|
|
};
|