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

mxl

v0.6.11

Published

Tmux launcher

Downloads

42

Readme

Table of Contents

Tmux Launcher

Sources tmux profiles by invoking source-file helping to keep your tmux configurations portable.

This document is a brief introduction and guide, see mxl help and mxl help <cmd> for the man pages.

Requires node and tmux.

Install

npm i -g mxl

Usage

Usage: mxl <command> [-anrh] [-a|--all] [-n|--noop]
           [-r|--recursive] [--color|--no-color] [-h|--help]
           [--version] [-c|--directory=<dir...>]
           [-p|--pattern=<ptn...>] [-s|--session=<name>] <args>

Tmux launcher.

Commands:
 attach, att, a             Attach to a session.
 exec, ex                   Execute a command in a pane.
 list, ls                   List configuration files.
 source, so                 Source tmux configuration files.
 alias, as                  Manage file aliases.
 remove, rm                 Remove aliases by pattern match.
 prune, pr                  Remove stale aliases.
 index, idx                 Generate alias index.
 kill, k                    Kill sessions, windows and panes.
 install, i                 Install alias files.
 view, vi                   View and edit configuration files.
 quit                       Kill the tmux server.
 help                       Show help for commands.

Options:
 -c, --directory=[dir ...]  Working directory contexts.
 -p, --pattern=[ptn ...]    Filter files by regexp pattern(s).
 -a, --all                  Match all configuration files.
 -n, --noop                 Print matched files, do not call source-file.
 -s, --session=[name]       Create session before source file(s).
 -r, --recursive            Match files recursively.
 -h, --help                 Print help and exit.
     --[no]-color           Enable or disable terminal colors.
     --version              Print version and exit.

Report bugs to https://github.com/freeformsystems/mxl/issues.

Quick Start

First install a scratch template into $HOME.

cd ~
mxl i @scratch

Modify ~/tmux.conf to suit your needs then source it to create a scratch alias by username:

mxl .

Check the new alias exists:

mxl as

Then once you are in tmux you can launch the scratch template in your home directory:

mxl

Or from any directory with:

mxl @<username>

Now go read the man pages!

Configuration Examples

See the templates for example tmux configuration files, these files become the global aliases on installation.

Developer

Clone the repository, install deps (npm i) and symlink the executable in $PATH.

Install vim-tmux if possible, it's very useful.

When NODE_ENV is set to devel error stack traces are printed and man pages may be generated dynamically (NODE_ENV=devel mxl help).

Test

To run the test suite:

npm test

Note that the working directory for test execution is set to fixtures/conf.

Run an individual test spec with TEST_SPEC:

TEST_SPEC=test/spec/context npm test

Cover

To generate code coverage:

npm run cover

Alias

To rebuild the default rc file aliases from the files in tpl run:

npm run alias

This is automatically called on postinstall to ensure shipped aliases are correct.

Docs

To build all documentation:

npm run docs

Manual

To build all man pages (requires manpage):

npm run manual

Readme

To build the readme file from the partial definitions (requires mdp):

npm run readme

License

Everything is MIT. Read the license if you feel inclined.

Generated by mdp(1).