diff options
author | sotech117 <michael_foiani@brown.edu> | 2025-08-26 23:37:53 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2025-08-26 23:37:53 -0400 |
commit | a89d60f5886426f12e5d614285fbb51d788c2e75 (patch) | |
tree | 8caa063805c7b81d1f6e33c1efabb4bf819dd207 /upload.js | |
parent | 92bd0f599de615667ffea46daeb4ed00d4a27a5c (diff) |
added server code and readme
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 |