whoami
Return the name of current script, or path or time, or size...
whoami(
[where=false],
[extension=false],
[fullpath=false],
[time=false],
[size=false],
[path=false],
[noext=false],
[png=false],
[noname=false]
) -> STRING
Return the name of current script, or path or time, or size...
Syntaxe
var who = whoami();
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
where | bool | - | false | Return column/line number |
extension | bool | - | false | Return extension |
fullpath | bool | - | false | Return fullpath |
time | bool | - | false | Return date/time of current file |
size | bool | - | false | Return size of current file |
path | bool | - | false | Return path (OS-specific path separator at the end) |
noext | bool | - | false | Return fullpath + filename without extension |
png | bool | - | false | Return fullpath + filename with PNG extension |
noname | bool | - | false | Don't return name (usefull with time, size, where...) |