String injection thingy
git clone https://github.com/skylvie/syringe
cd syringe
pnpm i
pnpm build
pnpm link --globalsyringe -i ./input.js -o ./out.js -s ./data/Lets say input.js contains:
const a = "/* @SYRINGE-INJECT: test.txt */";Inside of data/ there is a filed called text.txt that contains:
hello
world
out.js will look like:
const a = "hello\nworld";