How to use any Nodejs dependened modules (pino-pretty, pm2) with Bunjs
bunjs, pino, pino-pretty, fix, pm2
PreviousBunjs —global indirme sorunu cozumuNextCleaning up unused imports in Python with autoflake using a VS Code task
Last updated
bunjs, pino, pino-pretty, fix, pm2
Last updated
© 2024 ~ Yunus Emre Ak ~ yEmreAk
pino-pretty
requires Node.js to execute
Thus it looks for the node
executable.
In the example provided, you're using bun
to execute a TypeScript file and then piping (|
) the output to pino-pretty
which is also being run with bun
. This is assuming that bun
can work as a drop-in replacement for node
in this scenario. However, be cautious with this approach as it might not be applicable for all Nodejs packages or scripts due to compatibility issues.