Can I use ts-node as a Node.js-specific version of TypeScript? #1384
Unanswered
parzhitsky
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From the discussion about API for parsing config files, I stumbled upon an interesting insight: TypeScript does not make any assumptions about the environment. This means that, for example, to write / read / find files (or otherwise work with the filesystem), the corresponding functions have to be provided explicitly; TypeScript can't use API of
fs
module, because that would mean assuming Node.js environment.The question is therefore, can I use
ts-node
for this use-case? Are there any plans on this? Maybe, there is another TypeStrong package, that is designed for that?Beta Was this translation helpful? Give feedback.
All reactions