@vonage/client-sdk
Version:
The Client SDK is intended to provide a ready solution for developers to build Programmable Conversation applications across multiple Channels including: Messages, Voice, SIP, websockets, and App.
26 lines (19 loc) • 596 B
JavaScript
import { readFileSync, writeFileSync } from 'fs';
function replaceAllDoNotUseOrImplement(filePath) {
const oldLines = readFileSync(filePath, 'utf8').split('\n');
const newLines = [];
let toSkip = false;
for (let line of oldLines) {
if (line.includes('__doNotUseOrImplementIt')) {
toSkip = !line.includes(';');
continue;
} else if (toSkip) {
toSkip = !line.includes('};');
continue;
}
newLines.push(line);
}
writeFileSync(filePath, newLines.join('\n'), 'utf8');
}
const filePath = process.argv[2];
replaceAllDoNotUseOrImplement(filePath);