Join Slack
Powered by
Does anyone know, is it possible to call a functio...
# orm-help
m
mikkelsl
09/24/2020, 1:26 PM
Does anyone know, is it possible to call a function inside a file? Something like:
ts-node -func seed() ./scripts.ts
,
ts-node -func clear() ./scripts.ts
j
Jonathan Romano
09/24/2020, 1:28 PM
There are a variety of suggestions here:
https://stackoverflow.com/questions/30782693/run-function-in-script-from-command-line-node-js
💯 1
🙏 1
3
Views
Open in Slack
Previous
Next