Skip to content

Instantly share code, notes, and snippets.

View vsemozhetbyt's full-sized avatar

Vse Mozhe Buty vsemozhetbyt

View GitHub Profile
'use strict';
/******************************************************************************/
const path = process.argv[2];
if (!path) {
console.log('Add the file path, please.');
process.exit();
}
/******************************************************************************/
const fs = require('fs');
const stringWidth = require('string-width');
'use strict';
/******************************************************************************/
const path = process.argv[2];
let linesPerPage = Number(process.argv[3]);
if (!path || !linesPerPage) {
console.log('Add the file path and lines per page number, please.');
process.exit();
}
linesPerPage -= 2;
/******************************************************************************/
'use strict';
/******************************************************************************/
const path = process.argv[2];
if (!path) {
console.log('Add the file path, please.');
process.exit();
}
/******************************************************************************/
const fs = require('fs');
'use strict';
/******************************************************************************/
const path = process.argv[2];
const linesPerPage = Number(process.argv[3]);
const splitByPages = Number(process.argv[4]);
if (!path || !linesPerPage || !splitByPages) {
console.log(
'Add the file path, lines per page and split by pages numbers, please.');
process.exit();
}
'use strict';
/******************************************************************************/
const hrstart = process.hrtime();
const fs = require('fs');
const readline = require('readline');
const getByteLength = Buffer.byteLength;
const inputPath = process.argv[2];
const outputPath = process.argv[3];
'use strict';
/******************************************************************************/
console.log('Requiring modules...');
const fs = require('fs');
const path = require('path');
const readline = require('readline');
const execSync = require('child_process').execFileSync;
const urlParser = require('url');
const jsdom = require('jsdom');
'use strict';
/******************************************************************************/
console.log('Requiring modules...');
const fs = require('fs');
const path = require('path');
const readline = require('readline');
const exec = require('child_process').execFile;
const execSync = require('child_process').execFileSync;
const jsdom = require('jsdom');
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>Save WordSpy.com</title>
<style>
body * {margin-bottom: 10px; font-family: monospace;}
label {white-space: pre;}
/******************************************************************************/
'use strict';
const fs = require('fs');
const pth = require('path');
const readline = require('readline');
const nwWin = nw.Window.get();
const nwDoc = window.document;
/******************************************************************************/
'use strict';
/******************************************************************************/
const fs = require('fs');
const path = require('path');
const outCoding = 'utf8';
process.argv.slice(2).forEach(processSRT);
/******************************************************************************/