alias-win
An effort to encapsulate aliases used by the console of current process.
This library provides native bindings for Windows APIs:
Usage
const alias = ;alias;
API
alias.get([exeName])
Get console aliases for the specified executable.
console
alias.getSync([exeName])
For detailed information, see the documentation of the asynchronous version of this API: alias.get()
.
alias.set(aliases, [exeName])
Set console aliases for the specified executable.
await alias;
alias.setSync(aliases, [exeName])
For detailed information, see the documentation of the asynchronous version of this API: alias.set()
.
CLI
The console aliases may be set and unset with the alias
and unalias
commands.
For detailed information, see the documentation of bash