date |
string |
Current date in the format: yyyy-mm-dd |
time |
string |
Current time in the format: hh-mm |
datetime |
string |
Current date and time in the format: yyyy-mm-dd hh-mm |
user |
string |
Current username obtained by reading the USER field in the environment variables |
rootPath |
string |
Absolute path of the project root directory, i.e., the Workspace root directory opened by vscode (path separator varies by system) |
rootPathUnix |
string |
Absolute path of the project root directory, i.e., the Workspace root directory opened by vscode (path separator fixed as "/") |
relativeFilePath |
string |
Path of the current file relative to the root directory (rootPath) (path separator varies by system) |
relativeFilePathUnix |
string |
Path of the current file relative to the root directory (rootPath) (path separator fixed as "/") |
pkg |
any |
JSON object corresponding to the first package.json file found by searching upwards from the current file's directory |
dirPath |
string |
Absolute path of the directory where the current file is located (path separator varies by system) |
dirPathUnix |
string |
Absolute path of the directory where the current file is located (path separator fixed as "/") |
dirName |
string |
Name of the directory where the current file is located, without the path |
filePath |
string |
Absolute path of the current file (path separator varies by system) |
filePathUnix |
string |
Absolute path of the current file (path separator fixed as "/") |
fileName |
string |
Name of the current file, without the path and file extension |
fileExtension |
string |
File extension of the current file (without the ".") |
templatePath |
string |
Absolute path of the template file corresponding to the current file (path separator varies by system) |
templatePathUnix |
string |
Absolute path of the template file corresponding to the current file (path separator fixed as "/") |
rawModuleName |
string |
Alias for fileName, i.e., the name of the current file without the path and file extension |
moduleName |
string |
CamelCase form of fileName |
ModuleName |
string |
PascalCase form of fileName |
module_name |
string |
Lowercase form of fileName with words connected by underscores |
MODULE_NAME |
string |
Uppercase form of fileName with words connected by underscores |
moduleCamelName |
string |
CamelCase form of fileName, example: fooBar |
modulePascalName |
string |
PascalCase form of fileName, example: FooBar |
moduleTitleName |
string |
Title case form of fileName, words separated by spaces, example: Foo Bar |
moduleKebabName |
string |
Lowercase form of fileName, words separated by hyphens, example: foo-bar |
moduleSnakeName |
string |
Lowercase form of fileName, words connected by underscores, same as module_name variable, example: foo_bar |
moduleConstantName |
string |
Uppercase form of fileName, words connected by underscores, same as MODULE_NAME variable, example: FOO_BAR |
moduleTrainName |
string |
Title case form of fileName, words separated by hyphens, example: Foo-Bar |
moduleSentenceName |
string |
Only the first letter of each word is uppercase, words separated by spaces, example: Foo bar |
modulePathName |
string |
Lowercase form of fileName, words separated by '/', example: foo/bar |
moduleDotName |
string |
Lowercase form of fileName, words separated by '.', example: foo.bar |
modulePascalSnakeName |
string |
PascalCase form of fileName, words connected by underscores, example: Foo_Bar |
dir |
any |
All variables associated with the folder when creating a file within a folder template |