npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

dosk

v0.1.6

Published

Quickly add, describe, and list Windows cmd prompt aliases

Downloads

29

Readme

npm version npm download count XO code style

npm module to Quickly add, describe, and list Windows cmd prompt aliases

Install

$ npm install --save dosk

Usage

const dosk = require('dosk');

dosk(['ls', 'dir /B', 'Print files without the extra bloat'], 'a');
//=> adds the alias ls with command dir /B with description Print files without the extra bloat

dosk([],'l');
//=> Prints the aliases

API

dosk(input, flag)

input

Type: Array

flag

Type: string

Quickly add, describe, and list Windows cmd prompt aliases

CLI

$ npm install --global dosk
Usage
  $ dosk [flag] [input]

Options
  -a   add a new alias
  -r   remove a previous alias
  -l   list the aliases you already have
  -e   edit a previous aliases command
  --en  rename a previous alias from _ to _
  --em  edit a previous alias manually
  --ed  edit a previous aliases description
  --echo turn echo on/off with input on/off.  Off by default

Examples
  $ dosk md "mkdir \"$*\"$tcd \"$*\"" -a
    creates a new alias called md which makes a new directory and changes to that directory
    Use \ to escape quotes

  $ dosk ls "dir /B" "Lists the directories without excessive information" -a
    Creates a new alias ls with the description "Lists the directories without excessive information"
    description must come last

  $ dosk ls -r
    Removes the alias ls from the list

  $ dosk -l
    lists the alaises in the .cmd file

  $ dosk ls dir -e
    change the command to dir

  $ dosk ls list --en
    Rename ls to list

  $ dosk ls "list directories and files" --ed
    change the description of ls to "list directories and files"

  $ dosk --em
    Opens the .cmd file for manual editing

  $ dosk on --echo
    Turns echo on

Due to security concerns these changes are made permanent manually.
To make these changes permanent you need to edit the registry.
You can do that by going typing 'regedit' in start. Then going to
HKEY_CURRENT_USER->Software->Microsoft->Command Processor
Add a new String Value with
 Name: AutoRun
 Data: C:\Windows\System32\env.cmd

Useful Aliases

ls=dir /B
::Lists all files and directories without the extra bloat of dir

c=cls
::Easier to remember way to clear screen

md=mkdir "&*"$tcd "$*"
::Make a new directory and immediately switch to it

res=cmd.exe
::Start another instance of cmd.exe inside current window.
::Useful for new changes to take effect

If anyone has more useful aliases that they use regularly then create an issue and I'll add them

License

MIT © Alex Brelsford