Detect EOL type using PHP
Reference: This is a self-answered question. It was meant to share the knowledge, Q&A style.
Reference: This is a self-answered question. It was meant to share the knowledge, Q&A style.
I’m installing the Sharp
package for image compression on the docker image for a Nodejs project with package.json.
When I create the container I get the following error regarding to the sharp package:
I want to run a program on several platforms (including Mac OS), so I try to keep it as platform independent as possible. I use Windows myself, and I have a line os.startfile(file)
. That works for me, but not on other platforms (I read in the documentation, I haven’t tested for myself).