Check if your code is running as an npm script