etcd3/client.patch.js

9 строки
267 B
JavaScript

const fs = require('fs');
const path = require('path');
const source = path.join(__dirname, 'client.patch.txt');
const target = path.join(path.dirname(require.resolve('grpc')), 'src', 'client.js');
fs.createReadStream(source)
.pipe(fs.createWriteStream(target));