@mikermcneil/kit
A couple of command-line utilities.
Last updated 2 years ago by mikermcneil .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @mikermcneil/kit 
SYNC missed versions from official npm registry.

kit

kit

A simple command-line tool with a few handy tools, including:

  • generating ASCII art from text
  • verifying package.json dependencies (vs. rodestead)
∑ kit about
•  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •
  ___--¬___
 |~~ ``` ~~|
 |         |
 |_________|
 |_________|

kit vXX.XX.XX
(run kit for usage)

kit is a light-hearted grab bag of command-line utilities.
Feel free to fork, add whatever, and send PRs if you like.
https://github.com/mikermcneil/kit
•  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •  •

Installation

∑ npm install -g @mikermcneil/kit

kit

∑ kit

  Usage: kit [options] <command>


  Commands:

    pkg         show the version of the package in the current directory
    deps        get the install footprint + versions of this package's dependencies
    exclaim     convert a message to ASCII art and copy it to your clipboard
    h1          exclaim a custom heading for your JavaScript code
    h2          exclaim a custom sub-heading for your JavaScript code
    about       what is kit?
    help [cmd]  display help for [cmd]

  Options:

    -h, --help     output usage information
    -V, --version  output the version number

kit pkg

∑ cd /code/sails
∑ kit pkg
-----------------------------------------------------------------
sails
API-driven framework for building realtime apps, using MVC conventions (based on Express and Socket.io)
v0.12.4
MIT License

> http://npmjs.org/package/sails
> http://github.com/balderdashy/sails/
-----------------------------------------------------------------

kit deps

∑ cd /code/machinepack-fs
machinepack-fs: ∑ kit deps
lodash.isobject@3.0.2                                            ~5.3 KB
lodash.isfunction@3.0.8                                          ~5.96 KB
rttc@9.3.4  (~9.3.0)                                             ~1.06 MB
machine@13.0.0-11                                                ~577.34 KB
walker@1.0.7                                                     ~17.09 KB
machinepack-json@2.0.1  (~2.0.0)                                 ~1.51 MB
machinepack-strings@5.0.0                                        ~2.26 MB
machinepack-util@6.0.1  (~6.0.0)                                 ~2.51 MB
fs-extra@0.30.0                                                  ~317.26 KB

Altogether, dependencies weigh in at ~8.28 MB
(that will take an average of ~4.14 seconds on coffee shop internet)

 (Note that `devDependencies` and `optionalDependencies` were NOT included above.)

kit exclaim

∑ kit exclaim hello world!
-----------------------------------------------------------------
OK, I copied an ASCII-art-ified version of that message to your clipboard:

//  ██╗  ██╗███████╗██╗     ██╗      ██████╗     ██╗    ██╗ ██████╗ ██████╗ ██╗     ██████╗ ██╗
//  ██║  ██║██╔════╝██║     ██║     ██╔═══██╗    ██║    ██║██╔═══██╗██╔══██╗██║     ██╔══██╗██║
//  ███████║█████╗  ██║     ██║     ██║   ██║    ██║ █╗ ██║██║   ██║██████╔╝██║     ██║  ██║██║
//  ██╔══██║██╔══╝  ██║     ██║     ██║   ██║    ██║███╗██║██║   ██║██╔══██╗██║     ██║  ██║╚═╝
//  ██║  ██║███████╗███████╗███████╗╚██████╔╝    ╚███╔███╔╝╚██████╔╝██║  ██║███████╗██████╔╝██╗
//  ╚═╝  ╚═╝╚══════╝╚══════╝╚══════╝ ╚═════╝      ╚══╝╚══╝  ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═════╝ ╚═╝
//
-----------------------------------------------------------------

Options

∑ kit exclaim --help

  Usage: kit-exclaim [options]

  Options:

    -h, --help   output usage information
    -a, --args   the serial command-line arguments.
    -w, --width  the width before wrapping.
    -f, --font   the ASCII font to use.

Headings

∑ kit exclaim 'find user & populate projects' --width=15
-----------------------------------------------------------------
OK, I copied an ASCII-art-ified version of that message to your clipboard:

//  ███████╗██╗███╗   ██╗██████╗     ██╗   ██╗███████╗███████╗██████╗        ██╗
//  ██╔════╝██║████╗  ██║██╔══██╗    ██║   ██║██╔════╝██╔════╝██╔══██╗       ██║
//  █████╗  ██║██╔██╗ ██║██║  ██║    ██║   ██║███████╗█████╗  ██████╔╝    ████████╗
//  ██╔══╝  ██║██║╚██╗██║██║  ██║    ██║   ██║╚════██║██╔══╝  ██╔══██╗    ██╔═██╔═╝
//  ██║     ██║██║ ╚████║██████╔╝    ╚██████╔╝███████║███████╗██║  ██║    ██████║
//  ╚═╝     ╚═╝╚═╝  ╚═══╝╚═════╝      ╚═════╝ ╚══════╝╚══════╝╚═╝  ╚═╝    ╚═════╝
//
//  ██████╗  ██████╗ ██████╗ ██╗   ██╗██╗      █████╗ ████████╗███████╗
//  ██╔══██╗██╔═══██╗██╔══██╗██║   ██║██║     ██╔══██╗╚══██╔══╝██╔════╝
//  ██████╔╝██║   ██║██████╔╝██║   ██║██║     ███████║   ██║   █████╗
//  ██╔═══╝ ██║   ██║██╔═══╝ ██║   ██║██║     ██╔══██║   ██║   ██╔══╝
//  ██║     ╚██████╔╝██║     ╚██████╔╝███████╗██║  ██║   ██║   ███████╗
//  ╚═╝      ╚═════╝ ╚═╝      ╚═════╝ ╚══════╝╚═╝  ╚═╝   ╚═╝   ╚══════╝
//
//  ██████╗ ██████╗  ██████╗      ██╗███████╗ ██████╗████████╗███████╗
//  ██╔══██╗██╔══██╗██╔═══██╗     ██║██╔════╝██╔════╝╚══██╔══╝██╔════╝
//  ██████╔╝██████╔╝██║   ██║     ██║█████╗  ██║        ██║   ███████╗
//  ██╔═══╝ ██╔══██╗██║   ██║██   ██║██╔══╝  ██║        ██║   ╚════██║
//  ██║     ██║  ██║╚██████╔╝╚█████╔╝███████╗╚██████╗   ██║   ███████║
//  ╚═╝     ╚═╝  ╚═╝ ╚═════╝  ╚════╝ ╚══════╝ ╚═════╝   ╚═╝   ╚══════╝
//
-----------------------------------------------------------------

Sub-headings

∑ kit exclaim 'SEND EMAIL via mailgun' --width=25 --font='Calvin S'
-----------------------------------------------------------------
OK, I copied an ASCII-art-ified version of that message to your clipboard:

//  ╔═╗╔═╗╔╗╔╔╦╗  ╔═╗╔╦╗╔═╗╦╦    ┬  ┬┬┌─┐  ┌┬┐┌─┐┬┬  ┌─┐┬ ┬┌┐┌
//  ╚═╗║╣ ║║║ ║║  ║╣ ║║║╠═╣║║    └┐┌┘│├─┤  │││├─┤││  │ ┬│ ││││
//  ╚═╝╚═╝╝╚╝═╩╝  ╚═╝╩ ╩╩ ╩╩╩═╝   └┘ ┴┴ ┴  ┴ ┴┴ ┴┴┴─┘└─┘└─┘┘└┘
-----------------------------------------------------------------

kit h1

∑ kit h1 hi
-----------------------------------------------------------------
OK, I copied an ASCII-art-ified version of that message to your clipboard:

//  ██╗  ██╗██╗
//  ██║  ██║██║
//  ███████║██║
//  ██╔══██║██║
//  ██║  ██║██║
//  ╚═╝  ╚═╝╚═╝
//
-----------------------------------------------------------------

kit h2


∑ kit h2 hi
-----------------------------------------------------------------
OK, I copied an ASCII-art-ified version of that message to your clipboard:

//  ┬ ┬┬
//  ├─┤│
//  ┴ ┴┴
-----------------------------------------------------------------

Credits

This module wouldn't be possible without @patorjk's amazing work on figlet.

See also:

Links / Reminders

License

MIT

Current Tags

  • 1.4.1                                ...           latest (2 years ago)

26 Versions

  • 1.4.1                                ...           2 years ago
  • 1.4.0                                ...           3 years ago
  • 1.3.13                                ...           3 years ago
  • 1.3.12                                ...           3 years ago
  • 1.3.11                                ...           4 years ago
  • 1.3.10                                ...           4 years ago
  • 1.3.9                                ...           4 years ago
  • 1.3.8                                ...           4 years ago
  • 1.3.7                                ...           4 years ago
  • 1.3.6                                ...           4 years ago
  • 1.3.5                                ...           4 years ago
  • 1.3.4                                ...           4 years ago
  • 1.3.3                                ...           4 years ago
  • 1.3.2                                ...           4 years ago
  • 1.3.1                                ...           4 years ago
  • 1.3.0                                ...           4 years ago
  • 1.2.6                                ...           4 years ago
  • 1.2.5                                ...           4 years ago
  • 1.2.4                                ...           4 years ago
  • 1.2.3                                ...           4 years ago
  • 1.2.2                                ...           4 years ago
  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.3                                ...           5 years ago
  • 1.1.2                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (14)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |