Get the local downloads folder, for all major platforms.
const downloadsFolder = ;console;
$ npm install downloads-folder
Return the location of the downloads folder for the current platform.
Warning: On *nix, this will perform synchronous operations, so don't place it where concurrency is required. It's probably the best to just determine this folder once when your application starts.
- Mac OS X: