New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

alias-win

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

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.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 22 Dec 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc