This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /******************************************************************************/ | |
| 'use strict'; | |
| /******************************************************************************/ | |
| convert(); | |
| /******************************************************************************/ | |
| function convert() { | |
| const propName = (process.argv[2] || 'L').trim(); | |
| try { | |
| console.log(`${new RegExp(`\\p{${propName}}`, 'u')} =\n`); | |
| const propRE = new RegExp(`^\\p{${propName}}$`, 'u'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /******************************************************************************/ | |
| 'use strict'; | |
| /******************************************************************************/ | |
| const [, , fpath] = process.argv; | |
| if (!fpath) { | |
| console.error('Add the file path, please.'); | |
| process.exit(1); | |
| } | |
| /******************************************************************************/ | |
| const fs = require('fs'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /******************************************************************************/ | |
| 'use strict'; | |
| /******************************************************************************/ | |
| // progress bar as a module | |
| module.exports = function pb(edge = 0) { | |
| const rl = require('readline'); | |
| const DEFAULT_FREQ = 500; | |
| const HUNDRED_PERCENT = 100; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /******************************************************************************/ | |
| 'use strict'; | |
| /******************************************************************************/ | |
| const path = require('path'); | |
| const fpath = process.argv[2] || ''; | |
| const fext = path.extname(fpath); | |
| if (!fpath || process.argv[3] || !['.gls', '.ifo'].includes(fext)) { | |
| const scriptName = path.basename(__filename); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const gcs = { | |
| Lu: 'ABC', | |
| Ll: 'абв', | |
| Lt: 'ᾼῌῼ', | |
| get LC(){return this.Lu + this.Ll + this.Lt}, | |
| Lm: 'ʰʱʲ', | |
| Lo: 'אבג', | |
| get L() {return Object.keys(this).filter(k => /^L[a-z]$/.test(k)) | |
| .map(k => this[k]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| /******************************************************************************/ | |
| const fpath = process.argv[2]; | |
| if (!fpath) { | |
| console.error('Add the file path, please.'); | |
| process.exit(1); | |
| } | |
| /******************************************************************************/ | |
| const fs = require('fs'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| /******************************************************************************/ | |
| const fpath = process.argv[2]; | |
| if (!fpath) { | |
| console.error('Add the file path, please.'); | |
| process.exit(1); | |
| } | |
| /******************************************************************************/ | |
| const fs = require('fs'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| /******************************************************************************/ | |
| const path = process.argv[2]; | |
| if (!path) { | |
| console.log('Add the file path, please.'); | |
| process.exit(); | |
| } | |
| /******************************************************************************/ | |
| const fs = require('fs'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| /******************************************************************************/ | |
| const path = process.argv[2]; | |
| if (!path) { | |
| console.log('Add the file path, please.'); | |
| process.exit(); | |
| } | |
| /******************************************************************************/ | |
| const fs = require('fs'); | |
| const rl = require('readline'); |