Server IP : 92.205.26.207 / Your IP : 216.73.216.16 Web Server : Apache System : Linux 207.26.205.92.host.secureserver.net 4.18.0-553.60.1.el8_10.x86_64 #1 SMP Thu Jul 10 04:01:16 EDT 2025 x86_64 User : zikryat ( 1002) PHP Version : 8.3.23 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/zikryat/public_html/node_modules/mjml-migrate/lib/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
#!/usr/bin/env node "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; var _fs = _interopRequireDefault(require("fs")); var _yargs = _interopRequireDefault(require("yargs")); var _migrate = _interopRequireDefault(require("./migrate")); var _package = require("../package.json"); const program = _yargs.default.usage('$0 [options] <input-file> <output-file>').version(_package.version).help(); if (program.argv._.length !== 2) { program.showHelp(); process.exit(1); } const [inputFilename, outputFilename] = program.argv._; const input = _fs.default.readFileSync(inputFilename, 'utf8'); const output = (0, _migrate.default)(input); _fs.default.writeFileSync(outputFilename, output); // eslint-disable-next-line no-console console.log(`${inputFilename} was converted to the MJML 4 syntax in ${outputFilename}`);