roblox-studio-pathutil
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

roblox-studio-pathutil

[!NOTE]
This package is ESM-only.

Install

npm install roblox-studio-pathutil

Usage

import { getRobloxStudioPath } from 'roblox-studio-pathutil';

const robloxStudioPath = await getRobloxStudioPath();

WSL

On WSL, Roblox Studio root path is required since /mnt/c/... cannot be automatically resolved

const robloxStudioPath = await getRobloxStudioPath(path.resolve(process.env.LOCALAPPDATA, 'Roblox'));

Or, set ROBLOX_STUDIO_PATH enviroment variable.

The same enviroment name as roblox_install is used.

export ROBLOX_STUDIO_PATH="$LOCALAPPDATA/Roblox"

This env var is automatically checked so not need to pass it to getRobloxStudioPath

await getRobloxStudioPath();
// Is equivalent to
await getRobloxStudioPath(process.env.ROBLOX_STUDIO_PATH);

Put this into ~/.zshenv or other shell equivalent for convinience (assuming LOCALAPPDATA is /mnt/c/Users/<user>/...).

Todo

  • Fix macOS paths

Readme

Keywords

none

Package Sidebar

Install

npm i roblox-studio-pathutil

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

9.01 kB

Total Files

17

Last publish

Collaborators

  • hy2k