Commit activity
Last 12 weeks · 8 commits
Community health
4 of 6 standards met
Recent fixes
Hello, been testing a TUI on WSL lately and was using this utility (thanks!). Ran into a small bug: and don't convert arrays. Both pass every path to a single call, but only takes one path at a time, so the call fails and the catch hands back the inputs unchanged: This breaks on WSL when trashing more than one file. Unconverted paths don't come back as , so treats them as Windows paths and sends them to PowerShell instead of the Linux trash. Fix with WSL-only tests on my fork, since PRs are limited to collaborators: https://github.com/ungoldman/wsl-utils/commit/f83f62a It runs once per path. With one call per path, keeps the input order, so the index bookkeeping that lined batch output up with its inputs is gone, and a failed conversion falls back for that path only. The calls run concurrently with no limit, and 400 paths (one chunk) convert in about 480ms. The two new tests cover array input for both functions. They fail before the fix and pass after on WSL 2.7.14.0, and and pass.
Repository: sindresorhus/wsl-utils. Description: Utilities for working with Windows Subsystem for Linux (WSL) Stars: 75, Forks: 2. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v1.0.1 (3w ago). Open PRs: 0, open issues: 0. Last activity: 3w ago. Community health: 85%. Top contributors: sindresorhus, jdufresne.