Socket
Socket
Sign inDemoInstall

alias-win

Package Overview
Dependencies
69
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    alias-win

An effort to encapsulate aliases used by the console of current process.


Version published
Weekly downloads
4
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

alias-win

NPM version AppVeyor Codecov David

An effort to encapsulate aliases used by the console of current process.

This library provides native bindings for Windows APIs:

Usage

const alias = require("alias-win");
alias.get().then(console.log);

API

alias.get([exeName])

Get console aliases for the specified executable.

console.log(await alias.get())

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.set({
  sudo: "$*",
  ll: "ls -l $*",

  // Use `null` to unset an alias
  bash: null,
});

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

Keywords

FAQs

Last updated on 22 Dec 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc