Naphthalene Possum Management

    downloads-folder
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.3 • Public • Published

    downloads-folder

    Get the local downloads folder, for all major platforms.

    Usage

    const downloadsFolder = require('downloads-folder');
    
    console.log(downloadsFolder());

    Installation

    $ npm install downloads-folder

    API

    downloadsFolder()

    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.

    Algorithm

    • Mac OS X: ~/Downloads
    • Windows: Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders{374DE290-123F-4565-9164-39C4925E467B} || ~/Downloads
    • *nix: xdg-user-dir DOWNLOAD || ~/Downloads || /tmp

    License

    MIT

    Keywords

    none

    Install

    npm i downloads-folder

    DownloadsWeekly Downloads

    14,191

    Version

    3.0.3

    License

    MIT

    Unpacked Size

    3.08 kB

    Total Files

    7

    Last publish

    Collaborators

    • juliangruber