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 🙏

© 2025 – Pkg Stats / Ryan Hefner

node-i2cssh

v2.0.0

Published

i2cssh with the help of node and osascript

Downloads

108

Readme

node-i2cssh

i2cssh with the support of osascript and node. It is highly inspired by the original i2cssh and the AppleScript version of it (i2cssh). It only runs from within iTerm2 (>2.9)!. The goal of this project is to create an alternative that is working with the newest iTerm2 and enhance it with features for the cloud like ssh to all ec2 instances that have a special tag.

Installation

npm -g install node-i2cssh

Usage

i2cssh 1.example.com 2.example.com 3.example.com

Configuration

by default, node-i2cssh is checking for a file called .i2csshrc in the users home directory. This can be overwritten with the -C option. see i2csshrc.example.yml for an annotated example configuration

Options

-C --config

overwrites the default config file location i2cssh -C ~/workspace/gitrepo/i2csshconfig.yml

-c --clusters

adds the given clusters hosts from the config to the hosts to connect to. i2cssh -c dev -c staging

-b --broadcast

starts the broadcast mode immediatly after all tabs are created i2cssh -b foo1.bar foo2.bar foo3.bar

-t --tags

ec2 tag in the format of $NAME=$VALUE (the = separator can be overridden in .i2csshrc -- see i2csshrc.example.yml). i2cssh -t env=staging -t end=dev Optionally: you can run i2cssh -t to get asked to which tag you want to connect to. Downside: you can only choose one key-value pair.

-u --user

Change the username to connect with i2cssh -u philipp foo1.bar results in ssh philipp@foo1.bar

EC2 Integration

For the EC2 integration to work, you need to have AWS_SECRET_ACCESS_KEY and AWS_ACCESS_KEY_ID set as environment variables. I recommend using envchain and creating some alias for i2cssh wrapping it into envchain like alias i2cssh="envchain aws i2cssh $@" You'll also need to defined the aws region in your .i2csshrc. see the example config for more information

ToDo

  • fully support original .i2csshrc
  • DONE ~~broadcast: (true/false) # Enable/disable broadcast on start~~
  • login: # Use this username for login
  • profile: # Use this iTerm profile
  • rank: (true/false) # Enable sending LC_RANK as an environment variable
  • columns: # Amount of columns
  • rows: # Amount of rows
  • sleep: # Seconds to sleep between creating SSH sessions
  • environment: # Send the following enviroment variables
  • fully support original command line options
  • DONE ~~-c, --clusters clus1,clus2 Comma-separated list of clusters specified in ~/.i2csshrc~~
  • -m, --machines a,b,c Comma-separated list of hosts
  • -f, --file FILE Cluster file (one hostname per line)
  • -A, --forward-agent Enable SSH agent forwarding
  • DONE (-u, --user) ~~-l, --login LOGIN SSH login name~~
  • -e, --environment KEY=VAL Send environment vars (comma-separated list, need to start with LC_)
  • -r, --rank Send LC_RANK with the host number as environment variable
  • -F, --fullscreen Make the window fullscreen
  • --columns COLUMNS Number of columns (rows will be calculated)
  • --rows ROWS Number of rows (columns will be calculated)
  • DONE ~~-b, --broadcast Start with broadcast input (DANGEROUS!)~~
  • -nb, --nobroadcast Disable broadcast
  • -p, --profile PROFILE Name of the iTerm2 profile (default: Default)
  • -s, --sleep SLEEP Number of seconds to sleep between creating SSH sessions
  • -X, --extra EXTRA_PARAM Additional ssh parameters (e.g. -Xi=myidentity.pem)