diff options
Diffstat (limited to 'upload.js')
-rw-r--r-- | upload.js | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1,5 +1,5 @@ -const fs = require('fs'); -const crypto = require('crypto'); +import fs from 'fs'; +import crypto from 'crypto'; // load in google credentials json file const credentialsPath = 'google_credentials.json'; @@ -153,7 +153,7 @@ const getRowsFromTSV = (tsvPath) => { return rows; } -const main = async () => { +export const runUpload = async () => { // // get the data from the tsv // const tsvPath = 'sp500_formatted_data.tsv'; // const tsvData = fs.readFileSync(tsvPath, 'utf8'); @@ -197,6 +197,4 @@ const main = async () => { } catch (error) { console.error('Error:', error); } -} - -main();
\ No newline at end of file +}
\ No newline at end of file |