Download portable getfoldersize
Author: s | 2025-04-24
What's New in GetFoldersize Portable . Changelog is not available for this version. GetFoldersize Portable Legacy Versions. GetFoldersize Portable (Updated on: Free getfoldersize portable download software at UpdateStar - GetFoldersize Review GetFoldersize is a powerful and user-friendly software application developed by
Download getfoldersize portable - Download.com.vn
Description Info All versions Reviews GetFoldersize (Portable) is a tool you can use to get the total size of folders and subfolders on your hard drive.You can use this tool to have a bird's eye view of what programs are responsible for using up the most or least storage space, potentially helping you to find out why you seem to have so little free space.Among its features are...Freeware for private and commercial useDetermine the size of folders and sub-folders on drives, media storages, CD/DVDs, network shares...Fast scan algorithmScan file and folder paths with an overall length of up to 32,000 characters and file and folder names containing Unicode charactersScan an unlimited number of files and foldersScan your hard drive for hard links, junctions and symbolic linksShow the number of file and/or folder of all files and subfoldersDisplay the file size in Bytes, Kilobytes, Megabytes and GigabytesPrint the folder treeSave the folder tree and information into a text fileStart GetFoldersize and scan folders right from the windows explorer context menu This is the portable version of GetFoldersize, that requires no installation. Screenshots: HTML code for linking to this page: Keywords: getfoldersize portable Date added 10 Mar 2017 Downloads 5,363 File size 6.63 MB ( Supported languages English Dutch Operating systems Vista / Win10 / Win2k / Win7 / Win8 / WinXP1 1License and operating system information is based on latest version of the software.
getfoldersize portable - Download.com.vn
External help file Module Name online version schema PSFolderSize-help.xml PSFolderSize 2.0.0 SYNOPSISGet-FolderSizeReturns the size of folders in MB and GB.You can change the base path, omit folders, as well as output results in various formats.SYNTAXdefault (Default)] [-FolderName ] [-OmitFolders ] [-AddTotal] [-AddFileTotals] [-UseRobo] [-Output ] [-OutputPath ] [-OutputSort ] [-OutputFile ] []">Get-FolderSize [[-BasePath] ] [-FolderName ] [-OmitFolders ] [-AddTotal] [-AddFileTotals] [-UseRobo] [-Output ] [-OutputPath ] [-OutputSort ] [-OutputFile ] []outputWithType] [-OutputPath ] [-OutputSort ] []">Get-FolderSize [-Output ] [-OutputPath ] [-OutputSort ] []DESCRIPTIONThis function will get the folder size in MB and GB of folders found in the basePath parameter.The BasePath parameter defaults to the current directory.EXAMPLESEXAMPLE 1Get-FolderSize | Format-Table -AutoSizeFolderName SizeBytes SizeMB SizeGB$GetCurrent 193768 0.18 MB 0.00 GB$RECYCLE.BIN 20649823 19.69 MB 0.02 GB$SysReset 53267392 50.80 MB 0.05 GBConfig.Msi 0.00 MB 0.00 GBDocuments and Settings 0.00 MB 0.00 GBGames 48522184491 46,274.36 MB 45.19 GBEXAMPLE 2Get-FolderSize -BasePath 'C:\Program Files'FolderName SizeBytes SizeMB SizeGB7-Zip 4588532 4.38 MB 0.00 GBAdobe 3567833029 3,402.55 MB 3.32 GBApplication Verifier 353569 0.34 MB 0.00 GBBonjour 615066 0.59 MB 0.00 GBCommon Files 489183608 466.52 MB 0.46 GBEXAMPLE 3Get-FolderSize -BasePath 'C:\Program Files' -FolderName IISFolderName SizeBytes SizeMB SizeGBIIS 5480411 5.23 MB 0.01 GBEXAMPLE 4$getFolderSize = Get-FolderSize $getFolderSize | Format-Table -AutoSizeFolderName SizeGB SizeMBPublic 0.00 GB 0.00 MBthegn 2.39 GB 2,442.99 MBEXAMPLE 5$getFolderSize = Get-FolderSize -Output csv -OutputPath ~\Desktop$getFolderSizeFolderName SizeGB SizeMBPublic 0.00 GB 0.00 MBthegn 2.39 GB 2,442.99 MB(Results will also be exported as a CSV to your Desktop folder)EXAMPLE 6Sort by size descending $getFolderSize = Get-FolderSize | Sort-Object SizeBytes -Descending$getFolderSizeFolderName SizeBytes SizeMB SizeGBUsers 76280394429 72,746.65 MB 71.04 GBGames 48522184491 46,274.36 MB 45.19 GBProgram Files (x86) 27752593691 26,466.94 MB 25.85 GBWindows 25351747445 24,177.31 MB 23.61 GBEXAMPLE 7Omit folder(s) from being included Get-FolderSize.ps1 -OmitFolders 'C:\Temp','C:\Windows'EXAMPLE 8Add file counts for each folderNote: This will slow down the execution of the script by around 30%$results = Get-FolderSize -AddFileTotalPS /Users/ninja/Documents/repos/PSFolderSize> $results[0] | Format-List *FolderName : .gitSizeBytes : 228591SizeMB : 0.22SizeGB : 0.00FullPath : /Users/ninja/Documents/repos/PSFolderSize/.gitHostName : njambp.localFileCount : 382PARAMETERS-BasePathThis parameter allows you to specify the base path you'd like to get the child folders of.It defaults to where the module was run from via (Get-Location).Type: String[]Parameter Sets: defaultAliases: PathRequired: FalsePosition: 1Default value: (Get-Location)Accept pipeline input: FalseAccept wildcard characters: False-FolderNameThis parameter allows you to specify the name of a specific folder you'd like to get the size of.Type: String[]Parameter Sets: defaultAliases: NameRequired: FalsePosition: NamedDefault value: AllAccept pipeline input: FalseAccept wildcard characters: False-OmitFoldersThis parameter allows you to omit folder(s) (array ofGetFoldersize 3.1.0 Portable
Download Firefox Portable 136.0 Date released: 06 Mar 2025 (one week ago) Download Firefox Portable 135.0.1 Date released: 18 Feb 2025 (4 weeks ago) Download Firefox Portable 135.0 Date released: 04 Feb 2025 (one month ago) Download Firefox Portable 134.0.2 Date released: 21 Jan 2025 (one month ago) Download Firefox Portable 134.0 Date released: 07 Jan 2025 (2 months ago) Download Firefox Portable 132.0.3 Date released: 10 Dec 2024 (3 months ago) Download Firefox Portable 132.0.2 Date released: 12 Nov 2024 (4 months ago) Download Firefox Portable 132.0.1 Date released: 05 Nov 2024 (4 months ago) Download Firefox Portable 132.0 Date released: 28 Oct 2024 (5 months ago) Download Firefox Portable 131.0.3 Date released: 14 Oct 2024 (5 months ago) Download Firefox Portable 131.0.2 Date released: 09 Oct 2024 (5 months ago) Download Firefox Portable 130.0.1 Date released: 17 Sep 2024 (6 months ago) Download Firefox Portable 130.0 Date released: 02 Sep 2024 (6 months ago) Download Firefox Portable 129.0.2 Date released: 20 Aug 2024 (7 months ago) Download Firefox Portable 129.0.1 Date released: 13 Aug 2024 (7 months ago) Download Firefox Portable 129.0 Date released: 13 Aug 2024 (7 months ago) Download Firefox Portable 128.0.3 Date released: 27 Jul 2024 (8 months ago) Download Firefox Portable 128.0 Date released: 09 Jul 2024 (8 months ago) Download Firefox Portable 127.0.2 Date released: 25 Jun 2024 (9 months ago) Download Firefox Portable 127.0.1 Date released: 20 Jun 2024 (9 months ago). What's New in GetFoldersize Portable . Changelog is not available for this version. GetFoldersize Portable Legacy Versions. GetFoldersize Portable (Updated on:Download GetFoldersize (Portable) v (freeware
Size, and not the size on disk. Read about the difference here.How do I import it from a CommonJS module?CommonJS modules do not support the import..from method, but they do support this method:const getFolderSize = (await import("get-folder-size")).default;Note that this import only works inside an async function.If you want to use the require method, consider just staying on v2. You can make v2 return a promise by importing it this way:const util = require("util");const getFolderSize = util.promisify(require("get-folder-size"));If none of these methods work for you, send us a detailed explanation of your issue, and we will take a look at it.How do I use it?This is a Node module. If you are not sure what that means, please check out one of the many great tutorials online, like nodejs.dev.When you have Node set up, you can install get-folder-size from your command line with this command:npm install get-folder-sizeYou can now import it into your JavaScript files, or you can use its command line interface (CLI).LicenseMITDownload GetFoldersize (Portable) v (freeware)
Get-folder-sizeGet the size of a folder by iterating through its sub-files and -folders.⚠️Version 3+ of this package is pure ESM and uses a new promise-based API. If you need to use CommonJS or the old callback syntax, keep your dependency pinned to version ^2 (v2 API reference).Basic usageIf you don't care about the details and just want a quick implementation, you can use:getFolderSize.loose('/path/to/folder');Example:import getFolderSize from 'get-folder-size';const myFolder = '/path/to/my/folder';const size = await getFolderSize.loose(myFolder);console.log(`The folder is ${size} bytes large`);console.log(`That is the same as ${(size / 1000 / 1000).toFixed(2)} MB`);MethodsWhen reading the size of a folder, read errors can randomly occur for a number of reasons, especially if a different process is altering files in the same folder at the same time. There are three different ways to call this package, depending on how you want to handle those errors:getFolderSize(path, [options]): objectThe default method will return an object with the size of the folder and a list of encountered errors:{ size: 1435, errors: [ Error{} ... ]}If no errors were encountered, errors will be null. If errors were encountered, size will likely be smaller than the real folder size.This method is great if you want to implement custom logic based on the errors that were encountered.getFolderSize.loose(path, [options]): number | bigintThe loose method will return the folder size directly and ignore any errors it encounters, which means the returned folder size could be smaller than the real folder size.This method is great if the precise size isn't too important, for example when usedGetFoldersize Portable Free Download - thinstallsoft.com
Download Opera Portable 117.0.5408.32 Date released: 13 Feb 2025 (4 weeks ago) Download Opera Portable 116.0.5366.51 Date released: 22 Jan 2025 (one month ago) Download Opera Portable 114.0.5282.154 Date released: 06 Nov 2024 (4 months ago) Download Opera Portable 114.0.5282.115 Date released: 23 Oct 2024 (5 months ago) Download Opera Portable 114.0.5282.102 Date released: 16 Oct 2024 (5 months ago) Download Opera Portable 113.0.5230.62 Date released: 04 Sep 2024 (6 months ago) Download Opera Portable 113.0.5230.32 Date released: 25 Aug 2024 (7 months ago) Download Opera Portable 112.0.5197.39 Date released: 04 Aug 2024 (7 months ago) Download Opera Portable 110.0.5130.66 Date released: 05 Jun 2024 (9 months ago) Download Opera Portable 110.0.5130.49 Date released: 29 May 2024 (10 months ago) Download Opera Portable 110.0.5130.39 Date released: 26 May 2024 (10 months ago) Download Opera Portable 110.0.5130.23 Date released: 15 May 2024 (10 months ago) Download Opera Portable 109.0.5097.80 Date released: 09 May 2024 (10 months ago) Download Opera Portable 109.0.5097.68 Date released: 26 Apr 2024 (11 months ago) Download Opera Portable 109.0.5097.59 Date released: 24 Apr 2024 (11 months ago) Download Opera Portable 109.0.5097.45 Date released: 12 Apr 2024 (11 months ago) Download Opera Portable 109.0.5097.38 Date released: 03 Apr 2024 (12 months ago) Download Opera Portable 109.0.5067.35 Date released: 29 Mar 2024 (12 months ago) Download Opera Portable 109.0.5067.33 Date released: 28 Mar 2024 (12 months ago) Download Opera Portable 108.0.5067.40 Date released: 22 Mar 2024 (12 months ago)GetFoldersize (Portable Edition) Free Download.
Download PPSSPP Portable 1.18.1 Date released: 05 Nov 2024 (5 months ago) Download PPSSPP Portable 1.18 Date released: 04 Nov 2024 (5 months ago) Download PPSSPP Portable 1.17.1 Date released: 05 Feb 2024 (one year ago) Download PPSSPP Portable 1.17 Date released: 28 Jan 2024 (one year ago) Download PPSSPP Portable 1.16.6 Date released: 13 Oct 2023 (one year ago) Download PPSSPP Portable 1.16.5 Date released: 29 Sep 2023 (one year ago) Download PPSSPP Portable 1.16.4 Date released: 26 Sep 2023 (one year ago) Download PPSSPP Portable 1.16.3 Date released: 23 Sep 2023 (one year ago) Download PPSSPP Portable 1.16.2 Date released: 19 Sep 2023 (one year ago) Download PPSSPP Portable 1.16.1 Date released: 13 Sep 2023 (one year ago) Download PPSSPP Portable 1.16 Date released: 10 Sep 2023 (one year ago) Download PPSSPP Portable 1.15.4 Date released: 23 May 2023 (one year ago) Download PPSSPP Portable 1.15.3 Date released: 08 May 2023 (one year ago) Download PPSSPP Portable 1.15.2 Date released: 05 May 2023 (one year ago) Download PPSSPP Portable 1.15.1 Date released: 04 May 2023 (one year ago) Download PPSSPP Portable 1.15 Date released: 01 May 2023 (one year ago) Download PPSSPP Portable 1.14.4 Date released: 04 Jan 2023 (2 years ago) Download PPSSPP Portable 1.14.3 Date released: 02 Jan 2023 (2 years ago) Download PPSSPP Portable 1.14.2 Date released: 30 Dec 2022 (2 years ago) Download PPSSPP Portable 1.14.1 Date released: 21 Dec 2022 (2 years ago). What's New in GetFoldersize Portable . Changelog is not available for this version. GetFoldersize Portable Legacy Versions. GetFoldersize Portable (Updated on: Free getfoldersize portable download software at UpdateStar - GetFoldersize Review GetFoldersize is a powerful and user-friendly software application developed by
Downloading GetFoldersize (Portable) v - AfterDawn
Download Firefox Portable 136.0.1 Date released: 11 Mar 2025 (one week ago) Download Firefox Portable 136.0 Date released: 06 Mar 2025 (2 weeks ago) Download Firefox Portable 135.0.1 Date released: 18 Feb 2025 (one month ago) Download Firefox Portable 135.0 Date released: 04 Feb 2025 (one month ago) Download Firefox Portable 134.0.2 Date released: 21 Jan 2025 (one month ago) Download Firefox Portable 134.0 Date released: 07 Jan 2025 (2 months ago) Download Firefox Portable 132.0.3 Date released: 10 Dec 2024 (3 months ago) Download Firefox Portable 132.0.2 Date released: 12 Nov 2024 (4 months ago) Download Firefox Portable 132.0.1 Date released: 05 Nov 2024 (5 months ago) Download Firefox Portable 132.0 Date released: 28 Oct 2024 (5 months ago) Download Firefox Portable 131.0.3 Date released: 14 Oct 2024 (5 months ago) Download Firefox Portable 131.0.2 Date released: 09 Oct 2024 (6 months ago) Download Firefox Portable 130.0.1 Date released: 17 Sep 2024 (6 months ago) Download Firefox Portable 130.0 Date released: 02 Sep 2024 (7 months ago) Download Firefox Portable 129.0.2 Date released: 20 Aug 2024 (7 months ago) Download Firefox Portable 129.0.1 Date released: 13 Aug 2024 (7 months ago) Download Firefox Portable 129.0 Date released: 13 Aug 2024 (7 months ago) Download Firefox Portable 128.0.3 Date released: 27 Jul 2024 (8 months ago) Download Firefox Portable 128.0 Date released: 09 Jul 2024 (9 months ago) Download Firefox Portable 127.0.2 Date released: 25 Jun 2024 (9 months ago)Free getfoldersize portable Download - UpdateStar
Download XAMPP Portable 8.2.12 Date released: 22 Nov 2023 (one year ago) Download XAMPP Portable 8.1.25 Date released: 22 Nov 2023 (one year ago) Download XAMPP Portable 8.2.4 Date released: 06 Apr 2023 (one year ago) Download XAMPP Portable 8.2.0 Date released: 30 Dec 2022 (2 years ago) Download XAMPP Portable 8.1.17 Date released: 09 Apr 2023 (one year ago) Download XAMPP Portable 8.1.12 Date released: 22 Nov 2022 (2 years ago) Download XAMPP Portable 8.1.10 Date released: 02 Oct 2022 (2 years ago) Download XAMPP Portable 8.1.6 Date released: 17 May 2022 (3 years ago) Download XAMPP Portable 8.1.5 Date released: 19 Apr 2022 (3 years ago) Download XAMPP Portable 8.1.4 Date released: 20 Mar 2022 (3 years ago) Download XAMPP Portable 8.1.2 Date released: 24 Jan 2022 (3 years ago) Download XAMPP Portable 8.1.1 Date released: 23 Dec 2021 (3 years ago) Download XAMPP Portable 8.1.0 Date released: 16 Dec 2021 (3 years ago) Download XAMPP Portable 8.0.30 Date released: 22 Nov 2023 (one year ago) Download XAMPP Portable 8.0.28 Date released: 06 Apr 2023 (one year ago) Download XAMPP Portable 8.0.25 Date released: 22 Nov 2022 (2 years ago) Download XAMPP Portable 8.0.23 Date released: 02 Oct 2022 (2 years ago) Download XAMPP Portable 8.0.19 Date released: 17 May 2022 (3 years ago) Download XAMPP Portable 8.0.18 Date released: 19 Apr 2022 (3 years ago) Download XAMPP Portable 8.0.17 Date released: 20 Mar 2022 (3 years ago). What's New in GetFoldersize Portable . Changelog is not available for this version. GetFoldersize Portable Legacy Versions. GetFoldersize Portable (Updated on: Free getfoldersize portable download software at UpdateStar - GetFoldersize Review GetFoldersize is a powerful and user-friendly software application developed byDownload GetFoldersize (Portable) v3.0.6 (freeware
Download Firefox Portable 136.0 Date released: 06 Mar 2025 (one week ago) Download Firefox Portable 135.0.1 Date released: 18 Feb 2025 (3 weeks ago) Download Firefox Portable 135.0 Date released: 04 Feb 2025 (one month ago) Download Firefox Portable 134.0.2 Date released: 21 Jan 2025 (one month ago) Download Firefox Portable 134.0 Date released: 07 Jan 2025 (2 months ago) Download Firefox Portable 132.0.3 Date released: 10 Dec 2024 (3 months ago) Download Firefox Portable 132.0.2 Date released: 12 Nov 2024 (4 months ago) Download Firefox Portable 132.0.1 Date released: 05 Nov 2024 (4 months ago) Download Firefox Portable 132.0 Date released: 28 Oct 2024 (5 months ago) Download Firefox Portable 131.0.3 Date released: 14 Oct 2024 (5 months ago) Download Firefox Portable 131.0.2 Date released: 09 Oct 2024 (5 months ago) Download Firefox Portable 130.0.1 Date released: 17 Sep 2024 (6 months ago) Download Firefox Portable 130.0 Date released: 02 Sep 2024 (6 months ago) Download Firefox Portable 129.0.2 Date released: 20 Aug 2024 (7 months ago) Download Firefox Portable 129.0.1 Date released: 13 Aug 2024 (7 months ago) Download Firefox Portable 129.0 Date released: 13 Aug 2024 (7 months ago) Download Firefox Portable 128.0.3 Date released: 27 Jul 2024 (8 months ago) Download Firefox Portable 128.0 Date released: 09 Jul 2024 (8 months ago) Download Firefox Portable 127.0.2 Date released: 25 Jun 2024 (9 months ago) Download Firefox Portable 127.0.1 Date released: 20 Jun 2024 (9 months ago)Comments
Description Info All versions Reviews GetFoldersize (Portable) is a tool you can use to get the total size of folders and subfolders on your hard drive.You can use this tool to have a bird's eye view of what programs are responsible for using up the most or least storage space, potentially helping you to find out why you seem to have so little free space.Among its features are...Freeware for private and commercial useDetermine the size of folders and sub-folders on drives, media storages, CD/DVDs, network shares...Fast scan algorithmScan file and folder paths with an overall length of up to 32,000 characters and file and folder names containing Unicode charactersScan an unlimited number of files and foldersScan your hard drive for hard links, junctions and symbolic linksShow the number of file and/or folder of all files and subfoldersDisplay the file size in Bytes, Kilobytes, Megabytes and GigabytesPrint the folder treeSave the folder tree and information into a text fileStart GetFoldersize and scan folders right from the windows explorer context menu This is the portable version of GetFoldersize, that requires no installation. Screenshots: HTML code for linking to this page: Keywords: getfoldersize portable Date added 10 Mar 2017 Downloads 5,363 File size 6.63 MB ( Supported languages English Dutch Operating systems Vista / Win10 / Win2k / Win7 / Win8 / WinXP1 1License and operating system information is based on latest version of the software.
2025-04-02External help file Module Name online version schema PSFolderSize-help.xml PSFolderSize 2.0.0 SYNOPSISGet-FolderSizeReturns the size of folders in MB and GB.You can change the base path, omit folders, as well as output results in various formats.SYNTAXdefault (Default)] [-FolderName ] [-OmitFolders ] [-AddTotal] [-AddFileTotals] [-UseRobo] [-Output ] [-OutputPath ] [-OutputSort ] [-OutputFile ] []">Get-FolderSize [[-BasePath] ] [-FolderName ] [-OmitFolders ] [-AddTotal] [-AddFileTotals] [-UseRobo] [-Output ] [-OutputPath ] [-OutputSort ] [-OutputFile ] []outputWithType] [-OutputPath ] [-OutputSort ] []">Get-FolderSize [-Output ] [-OutputPath ] [-OutputSort ] []DESCRIPTIONThis function will get the folder size in MB and GB of folders found in the basePath parameter.The BasePath parameter defaults to the current directory.EXAMPLESEXAMPLE 1Get-FolderSize | Format-Table -AutoSizeFolderName SizeBytes SizeMB SizeGB$GetCurrent 193768 0.18 MB 0.00 GB$RECYCLE.BIN 20649823 19.69 MB 0.02 GB$SysReset 53267392 50.80 MB 0.05 GBConfig.Msi 0.00 MB 0.00 GBDocuments and Settings 0.00 MB 0.00 GBGames 48522184491 46,274.36 MB 45.19 GBEXAMPLE 2Get-FolderSize -BasePath 'C:\Program Files'FolderName SizeBytes SizeMB SizeGB7-Zip 4588532 4.38 MB 0.00 GBAdobe 3567833029 3,402.55 MB 3.32 GBApplication Verifier 353569 0.34 MB 0.00 GBBonjour 615066 0.59 MB 0.00 GBCommon Files 489183608 466.52 MB 0.46 GBEXAMPLE 3Get-FolderSize -BasePath 'C:\Program Files' -FolderName IISFolderName SizeBytes SizeMB SizeGBIIS 5480411 5.23 MB 0.01 GBEXAMPLE 4$getFolderSize = Get-FolderSize $getFolderSize | Format-Table -AutoSizeFolderName SizeGB SizeMBPublic 0.00 GB 0.00 MBthegn 2.39 GB 2,442.99 MBEXAMPLE 5$getFolderSize = Get-FolderSize -Output csv -OutputPath ~\Desktop$getFolderSizeFolderName SizeGB SizeMBPublic 0.00 GB 0.00 MBthegn 2.39 GB 2,442.99 MB(Results will also be exported as a CSV to your Desktop folder)EXAMPLE 6Sort by size descending $getFolderSize = Get-FolderSize | Sort-Object SizeBytes -Descending$getFolderSizeFolderName SizeBytes SizeMB SizeGBUsers 76280394429 72,746.65 MB 71.04 GBGames 48522184491 46,274.36 MB 45.19 GBProgram Files (x86) 27752593691 26,466.94 MB 25.85 GBWindows 25351747445 24,177.31 MB 23.61 GBEXAMPLE 7Omit folder(s) from being included Get-FolderSize.ps1 -OmitFolders 'C:\Temp','C:\Windows'EXAMPLE 8Add file counts for each folderNote: This will slow down the execution of the script by around 30%$results = Get-FolderSize -AddFileTotalPS /Users/ninja/Documents/repos/PSFolderSize> $results[0] | Format-List *FolderName : .gitSizeBytes : 228591SizeMB : 0.22SizeGB : 0.00FullPath : /Users/ninja/Documents/repos/PSFolderSize/.gitHostName : njambp.localFileCount : 382PARAMETERS-BasePathThis parameter allows you to specify the base path you'd like to get the child folders of.It defaults to where the module was run from via (Get-Location).Type: String[]Parameter Sets: defaultAliases: PathRequired: FalsePosition: 1Default value: (Get-Location)Accept pipeline input: FalseAccept wildcard characters: False-FolderNameThis parameter allows you to specify the name of a specific folder you'd like to get the size of.Type: String[]Parameter Sets: defaultAliases: NameRequired: FalsePosition: NamedDefault value: AllAccept pipeline input: FalseAccept wildcard characters: False-OmitFoldersThis parameter allows you to omit folder(s) (array of
2025-03-27Size, and not the size on disk. Read about the difference here.How do I import it from a CommonJS module?CommonJS modules do not support the import..from method, but they do support this method:const getFolderSize = (await import("get-folder-size")).default;Note that this import only works inside an async function.If you want to use the require method, consider just staying on v2. You can make v2 return a promise by importing it this way:const util = require("util");const getFolderSize = util.promisify(require("get-folder-size"));If none of these methods work for you, send us a detailed explanation of your issue, and we will take a look at it.How do I use it?This is a Node module. If you are not sure what that means, please check out one of the many great tutorials online, like nodejs.dev.When you have Node set up, you can install get-folder-size from your command line with this command:npm install get-folder-sizeYou can now import it into your JavaScript files, or you can use its command line interface (CLI).LicenseMIT
2025-04-02Get-folder-sizeGet the size of a folder by iterating through its sub-files and -folders.⚠️Version 3+ of this package is pure ESM and uses a new promise-based API. If you need to use CommonJS or the old callback syntax, keep your dependency pinned to version ^2 (v2 API reference).Basic usageIf you don't care about the details and just want a quick implementation, you can use:getFolderSize.loose('/path/to/folder');Example:import getFolderSize from 'get-folder-size';const myFolder = '/path/to/my/folder';const size = await getFolderSize.loose(myFolder);console.log(`The folder is ${size} bytes large`);console.log(`That is the same as ${(size / 1000 / 1000).toFixed(2)} MB`);MethodsWhen reading the size of a folder, read errors can randomly occur for a number of reasons, especially if a different process is altering files in the same folder at the same time. There are three different ways to call this package, depending on how you want to handle those errors:getFolderSize(path, [options]): objectThe default method will return an object with the size of the folder and a list of encountered errors:{ size: 1435, errors: [ Error{} ... ]}If no errors were encountered, errors will be null. If errors were encountered, size will likely be smaller than the real folder size.This method is great if you want to implement custom logic based on the errors that were encountered.getFolderSize.loose(path, [options]): number | bigintThe loose method will return the folder size directly and ignore any errors it encounters, which means the returned folder size could be smaller than the real folder size.This method is great if the precise size isn't too important, for example when used
2025-04-23