{"_id":"@cjser/wsl-utils__v0_1_0","name":"@cjser/wsl-utils__v0_1_0","dist-tags":{"latest":"0.1.0-cjser.2"},"versions":{"0.1.0-cjser.2":{"name":"@cjser/wsl-utils__v0_1_0","version":"0.1.0-cjser.2","description":"Utilities for working with Windows Subsystem for Linux (WSL)","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","require":"./dist-cjser/index.cjs","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsc index.d.ts --skipLibCheck"},"keywords":["wsl","windows","subsystem","linux","powershell","mount","utilities"],"dependencies":{"@cjser/is-wsl":"3.1.1-cjser.2"},"devDependencies":{"ava":"^6.3.0","typescript":"^5.8.3","xo":"^1.0.0"},"types":"./index.d.ts","main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"0.1.0","cjserVersion":2,"original":{"name":"wsl-utils","version":"0.1.0","exports":{"types":"./index.d.ts","default":"./index.js"},"repository":"sindresorhus/wsl-utils","dependencies":{"is-wsl":"^3.1.0"},"files":["index.js","index.d.ts"],"scripts":{"test":"xo && ava && tsc index.d.ts --skipLibCheck"}}},"_id":"@cjser/wsl-utils__v0_1_0@0.1.0-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-iDDO92zohOqvJSKIKhP0B+I2V3CIrxJrsJwEy0nL2AjQ3nlpkeJrF/CikbfvN9t0yGHkw3AZl+lpVTVQFEJEQg==","shasum":"74729940cd635af0cf7fa61049eca55f75e92ff7","tarball":"https://registry.npmjs.org/@cjser/wsl-utils__v0_1_0/-/wsl-utils__v0_1_0-0.1.0-cjser.2.tgz","fileCount":6,"unpackedSize":9659,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDwqKLZi4UOkDnSKInQtEGzIqrWETKlOctnRIBapvuCRwIhAMy9Qjkj8TB3CdRn1qqKW0q6zfMgy0iAvxejUsm/EDfC"}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wsl-utils__v0_1_0_0.1.0-cjser.2_1778160652473_0.20314680257907303"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T13:30:52.331Z","0.1.0-cjser.2":"2026-05-07T13:30:52.604Z","modified":"2026-05-07T13:30:52.898Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Utilities for working with Windows Subsystem for Linux (WSL)","keywords":["wsl","windows","subsystem","linux","powershell","mount","utilities"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","readme":"# wsl-utils\n\n> Utilities for working with [Windows Subsystem for Linux (WSL)](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux)\n\n## Install\n\n```sh\nnpm install wsl-utils\n```\n\n## Usage\n\n```js\nimport {isWsl, powerShellPathFromWsl} from 'wsl-utils';\n\n// Check if running in WSL\nconsole.log('Is WSL:', isWsl);\n\n// Get PowerShell path from WSL\nconsole.log('PowerShell path:', await powerShellPathFromWsl());\n//=> '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe'\n```\n\n## API\n\n### isWsl\n\nType: `boolean`\n\nCheck if the current environment is Windows Subsystem for Linux (WSL).\n\n### powerShellPathFromWsl()\n\nReturns: `Promise<string>`\n\nGet the PowerShell executable path in WSL environment.\n\n### powerShellPath()\n\nReturns: `Promise<string>`\n\nGet the PowerShell executable path for the current environment.\n\nReturns WSL path if in WSL, otherwise returns Windows path.\n\n### wslDrivesMountPoint()\n\nReturns: `Promise<string>`\n\nGet the mount point for fixed drives in WSL.\n\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/wsl-utils\n","readmeFilename":"readme.md","_rev":"1-9b70664a1e95393e4574a8039b3ed3f6"}