{"_id":"@c4312/vscode-variables","name":"@c4312/vscode-variables","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@c4312/vscode-variables","version":"1.0.0","description":"Replace VSCode predefined variables for extensions","main":"index.js","devDependencies":{"@types/node":"^20.4.2","@types/vscode":"^1.80.0","proxyquire":"^2.1.3","typescript":"^5.1.6"},"scripts":{"prepack":"tsc"},"author":{"name":"Dominic Vonk"},"license":"MIT","repository":{"url":"git+https://github.com/DominicVonk/vscode-variables.git","type":"git"},"bugs":{"url":"https://github.com/DominicVonk/vscode-variables/issues"},"types":"./index.d.ts","gitHead":"fa7fd8f130906413c8352a7bec3107ddd0633625","homepage":"https://github.com/DominicVonk/vscode-variables#readme","_id":"@c4312/vscode-variables@1.0.0","_nodeVersion":"20.3.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-Huk2Eg5D8f8ALlll8e4wViPCWta+4W61I7azdi0Bg6f327EHr9lI3UW80vlSreD+pfxTm/oOe/MB8crQhQOB8A==","shasum":"8e3c87694cd3358381bda513cbb908869d259843","tarball":"https://registry.npmjs.org/@c4312/vscode-variables/-/vscode-variables-1.0.0.tgz","fileCount":8,"unpackedSize":11600,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClP/VRAGVMgFi4GUP8LlcNE/ExsBO4gkYSdq2tpoMVNAIhAI4S3O9HqMk8oxK3WcDa8ubeqwNekyRYrk8g/3xJuBNU"}]},"_npmUser":{"name":"connor.peet","email":"connor@peet.io"},"directories":{},"maintainers":[{"name":"connor.peet","email":"connor@peet.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vscode-variables_1.0.0_1689961218599_0.5926402930239747"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-21T17:40:18.493Z","1.0.0":"2023-07-21T17:40:18.798Z","modified":"2023-07-21T17:40:19.085Z"},"maintainers":[{"name":"connor.peet","email":"connor@peet.io"}],"description":"Replace VSCode predefined variables for extensions","homepage":"https://github.com/DominicVonk/vscode-variables#readme","repository":{"url":"git+https://github.com/DominicVonk/vscode-variables.git","type":"git"},"author":{"name":"Dominic Vonk"},"bugs":{"url":"https://github.com/DominicVonk/vscode-variables/issues"},"license":"MIT","readme":"# VSCode Predefined Variable Parser\n\nPredefined variables\nThe following predefined variables are supported:\n\n`${workspaceFolder}` - the path of the folder opened in VS Code  \n`${workspaceFolderBasename}` - the name of the folder opened in VS Code without any slashes (/)  \n`${file}` - the current opened file  \n`${fileWorkspaceFolder}` - the current opened file's workspace folder  \n`${relativeFile}` - the current opened file relative to workspaceFolder  \n`${relativeFileDirname}` - the current opened file's dirname relative to workspaceFolder  \n`${fileBasename}` - the current opened file's   \n`${fileBasenameNoExtension}` - the current opened file's basename with no file extension  \n`${fileDirname}` - the current opened file's dirname  \n`${fileExtname}` - the current opened file's extension  \n`${cwd}` - the task runner's current working directory on startup  \n`${lineNumber}` - the current selected line number in the active file  \n`${selectedText}` - the current selected text in the active file  \n`${pathSeparator}` - the character used by the operating system to separate components in file paths  \n`${env:<variable>}` - return the env variable  \n`${config:<variable>}` - return the settings configuration\n\n\n## Install the package:\n```npm i -S vscode-variables```\n\n## Using the package\n### Once\n```js\nconst vscodeVariables = require('vscode-variables');\n\nvscodeVariables('${file}'); //will return the fsPath of the file.\n```\n### Recursive\n\n```js\nconst vscodeVariables = require('vscode-variables');\n\nvscodeVariables('${file}',true); //will return the fsPath of the file.\n```","readmeFilename":"README.md"}