Include txt into tsc build

I have a ascii.txt file which I read with fs since formatting it correctly in a ts file is a nightmare How do I include it in the build
6 Replies
barry
barryOP15mo ago
Fixed it, used copyfiles package Nevermind I did not Fucking hosting the txt file somewhere lol fetch for the win ok that doesnt work either fml
dan
dan15mo ago
do you mean tsx? tsc would only convert ts to js
barry
barryOP15mo ago
No I stored ascii text
Sturlen
Sturlen15mo ago
any reason you can't do this?:
const ascii = `your multiline text here`
const ascii = `your multiline text here`
barry
barryOP15mo ago
Special characters And there was a lot I tried escaping but it was a nightmare So for now I host the txt on a gist and just fetch it lol If GitHub is down then create-drippy-api is down
Sturlen
Sturlen15mo ago
fair enough, I'd probably do the same in your situation
Want results from more Discord servers?
Add your server