I want to read my JS files to manage them and back them up.
I use ReadFile Sync successfully (thanks J.D.) but the file is not the same as the edited version.
What is happening? I want to read them the same as I entered them.
Reading Truy RAW. It still makes sense, but I want the same data.
Is there a directive I can put somewhere or an option?
Source:
import { libtest_js_test } from ‘public/libtest_js.js’ ;
import { rx_js_rx } from ‘public/rx_js.js’ ;
import { stock_js_txstock } from ‘public/stock_js.js’ ;
import { tracking_js_txtracking } from ‘public/tracking_js.js’ ;
Becomes:
“use strict”;
Object.defineProperty(exports, “__esModule”, {
value: true
});
exports.post_dir = post_dir;
exports.post_rx = post_rx;
exports.post_rxordi = post_rxordi;
exports.post_rxordi2 = post_rxordi2;
exports.post_stock = post_stock;
exports.post_test = post_test;
exports.post_txtracking = post_txtracking;
//i
I really need this. It sometimes works but not always.
Lawrence