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

cli-lipsum

v0.0.5

Published

Canonical example for the command module

Downloads

7

Readme

Lipsum

Canonical example for the command module.

Install

npm i -g cli-lipsum

Usage

Lorem ipsum is a program used to test help output.

If it looks like latin then it does nothing, other more meaningful options that
have an affect are interspersed, try --align and --format in particular. The
examples are valid, they illustrate some of the program functionality.

Usage: lipsum [-jcve] [--json] [--collapse] [--vanilla]
              [--sort=null|false|true|1|-1]
              [--format=text|json|markdown]
              [--align=column|line|flex|wrap] [--maximum=INT]

Options:

Command should be one of: lorem, mauris, in, ut, phasellus.

Commands:
 lorem              Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 mauris             Mauris pulvinar aliquam adipiscing.
 in                 In vitae faucibus libero.
 ut                 Ut bibendum massa orci, a vestibulum est fermentum quis.
 phasellus          Phasellus facilisis eros vel dui lobortis, at posuere neque
                    placerat.

Arguments:
 -a, --align=[value]
                    Alignment style (column|line|flex|wrap).
     --color        Control terminal color.
 -j, --json         Print help as json.
 -c, --collapse     Collapse whitespace between sections.
 -v, --vanilla      Disable parameter replacement.
 -e, --exit         Include exit section from error definitions.
 -s, --sort=[value] Alters the help option sort order. Set to null to use
                    natural order which is likely the order that options were
                    declared in however this is not guaranteed. Use false for
                    the default sorting logic which favours options with more
                    names, use true to sort lexicographically
                    (Array.prototype.sort). Use 1 to sort by option string
                    length (determined by the length of the help option string),
                    reverse the order with -1.
 -f, --format=[value]
                    Set the help output format.
     --debug        Enable debugging.
 -m, --maximum=[value]
                    Maximum column width, default 80.
 -L, --lorem-ipsum-dolor=[VALUE]
                    Lorem ipsum dolor.
 -i, --ipsum=[VALUE]
                    Ipsum dolor sit amet.
 --mauris-pulvinar, --ut-bibendum=[VALUE]
                    Mauris pulvinar.
 -a, --aliquam=[VALUE]
                    In vitae faucibus libero. Nullam eget leo eget tortor tempor
                    luctus. Nam at ante felis. Fusce pellentesque aliquet nisl,
                    at tempus ante imperdiet elementum. Etiam a bibendum justo,
                    ut placerat massa. Mauris mattis tellus ligula, at luctus
                    ante iaculis quis. Cum sociis natoque penatibus et magnis
                    dis parturient montes, nascetur ridiculus mus. Cras eget dui
                    nisl.
     --help         Display this help and exit.
     --version      Output version information and exit.

Examples:
 lipsum -j          Print help as JSON.
 lipsum -f=markdown Print help as markdown.
 lipsum --align flex
                    Switch to flex alignment.
 lipsum --maximum=100
                    Increase maximum column width.
 lipsum --sort null Disable help option sort (natural order).
 lipsum --sort false
                    Use default sort order.
 lipsum --sort true Use lexicographic sort order.
 lipsum --sort 1    Sort by length of option (longest first).
 lipsum --sort -1   Sort by length of option (shortest first).
 lipsum --no-color  Disable ansi colors.

Report bugs to muji <[email protected]>.

License

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