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

@albertoielpo/kk-cli

v1.0.6

Published

Typescript commander CLI

Downloads

19

Readme

kk cli

A simple command line interface with my personal most used commands.

Source code: Github

Install from npm

Install: npm i -g @albertoielpo/kk-cli

Install from source

Git repo: git clone https://github.com/albertoielpo/kk-cli.git

Install: npm i -g

Launch: kk --help

Development mode

Development watch mode: npm run watch

Execute from the root: kk.sh <command> [args]

Version: ./kk.sh --version

Test

Test: npm run test

Usage

Usage: kk [options] [command]

Options:

  -V, --version           output the version number
  -h, --help              display help for command

Commands:

  uuid                             generate random uuid. `kk uuid`
  mongoid                          generate random mongoid. `kk mongoid`
  str                              generate pseudo-random string. `kk str`
  int [digits]                     generate pseudo-random integer. Length define max digits. If invalid then max is used as default. `kk int 5`
  time [format]                    display current time using format (timestamp, iso8601). `kk time iso8601`
  base64 <action> <data>           encode/decode base64 text. `kk base64 encode text`
  scan <host> <port>               availability check of host + port. port could be comma separated string. `kk scan localhost 3000,3001`
  c2c <filename>                   copy file to clipboard. `kk c2c filename`. requires: pbcopy/pbpaste (for OSX), xclip (for Linux, FreeBSD, and OpenBSD) or clip (for Windows)

  pid [options] <arg> [strict]     get pid info. arg could be the program name or the pid number. `kk pid -h` || `kk pid <program_name>` || `kk pid <12076>` || `kk pid <program_name> -s` || `kk pid <program_name> -s -d`
                                   options:
                                      -s, --short           compact print
                                      -d, --disable-strict  disable strict mode

  pidport [options] <port_number>  get pid info by port number. `kk pidport -h` || `kk pidport 8080`
                                   options:
                                      -s, --short           compact print

  kill <arg>                       kill program. Arg could be the exact program name or the pid number. `kk kill program_name` || `kk kill 12076`
  killport <port_number>           kill program by port number. `kk killport 8080`
  jwtdecode <token>                decode a jwt token. does not check if a token is valid just decode the two main parts. `kk jwtdecode <token>`

  pwd [options] [passphrase]       generate password. `kk pwd [passphrase] -s <seed>` `kk pwd -r`. If passphrase is used the strenght of the password depends on passphrase. An additional seed is used to enforce security. If no passphrase is set the random flag should be set.
                                   options:
                                      -r, --random             generate random password
                                      -l, --length <length>    fixed length of random password
                                      -s, --seed <seed>        passphrase seed
                                      -v, --version [version]  password version algorithm
                                      -h, --help               display help for command

  help [command]                   display help for command