We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
递归获取文件夹大小,使用 go,足够快,可以跑在 node 中
Github 👉 go-get-folder-size
想要快速知道文件夹大小,但 nodejs 实现的 get-folder-size 是慢的,所以用 go 实现了递归获取文件夹大小,能跑在 nodejs 中。
具体可见 issue 👉 get-folder-size/issues/22
npm install go-get-folder-size
# Binary go, fastest npx go-get-folder-size
import { getFolderSize, getFolderSizeBin, getFolderSizeWasm } from 'go-get-folder-size' const base = './' // 你想要获取的目录 await getFolderSizeBin(base) // 二进制 go,最快 await getFolderSize(base) // 原生 node await getFolderSizeWasm(base) // Wasm go,最慢 🥵
go install github.com/markthree/go-get-folder-size
go-get-folder-size
go get github.com/markthree/go-get-folder-size
package main import ( getFolderSize "github.com/markthree/go-get-folder-size/src" ) func main() { size, err := getFolderSize.Parallel("./") // 并发计算,超级快 }
wasm
node
1s
esbuild
Made with markthree
Published under MIT License.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
go-get-folder-size
递归获取文件夹大小,使用 go,足够快,可以跑在 node 中
仓库
Github 👉 go-get-folder-size
特性
动机
想要快速知道文件夹大小,但 nodejs 实现的 get-folder-size 是慢的,所以用 go 实现了递归获取文件夹大小,能跑在 nodejs 中。
具体可见 issue 👉 get-folder-size/issues/22
使用
npm
install
cli
# Binary go, fastest npx go-get-folder-size
program
go
install
cli
program
提示
wasm
出奇的比原生node
要慢 🫣1s
内 👉 x-pm灵感来源
esbuild
License
Made with markthree
Published under MIT License.
The text was updated successfully, but these errors were encountered: