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

@buzuli/ops-tools

v11.4.1

Published

Miscellaneous ops tools to make my life easier.

Downloads

302

Readme

ops-tools

Build Status NPM version

A suite of tools to help @buzuli be more productive at DevOps.

Dependencies

  • Node.js >=8.0.0

Installing

$ npm i -g @buzuli/ops-tools

Both ops-tools and the alias ops will be exposed.

You can also invoke via npx:

npx @buzuli/ops-tools <sub-command>

Configuration

AWS

For AWS commands (ec2-*, s3-*, emr-*, etc.):

  • region - AWS_REGION | AWS_DEFAULT_REGION
  • key id - AWS_ACCESS_KEY | AWS_ACCESS_KEY_ID
  • secret key - AWS_SECRET_KEY | AWS_SECRET_ACCESS_KEY

Cloudflare

For cloudflare commands (cf-*):

  • zone - CLOUDFLARE_ZONE
  • email - CLOUDFLARE_EMAIL
  • api key - CLOUDFLARE_API_KEY

Color

Uses @buzuli/color, so you can adjust the color scheme using its config options:

  • BUZULI_COLOR_LIGHT=yes - for light terminal backgrounds
  • BUZULI_COLOR_DARK=yes - for dark terminal backgrounds
  • individual colors can also be configured (https://www.npmjs.com/package/@buzuli/color#configuration)

Usage

ops <command>

Commands:
  ops acm-import <pem-cert> <private-key>   Imports a pem-format cert into ACM
  ops acm-info <arn>                        show details for a certificate
  ops acm-list                              list all ACM certificates
  ops alarms                                list configured cloudwatch alarms
  ops ami-list                              list AMIs in the current region
  ops ami-publish <region> <ami>            make the identified AMI public
  ops ami-replicate <region> <ami>          replicate an AMI from one region to
                                            all others
  ops ami-unpublish <region> <ami>          make the identified AMI private
  ops aws-health                            list aws health events
  ops aws-ip-ranges                         IP ranges owned by AWS
  ops aws-regions                           List out the AWS regions
  ops cf-log-fields                         CloudFlare log fields
  ops cf-ray <ray-id>                       fetch the Cloudflare log record for
                                            the supplied Ray ID
  ops cf-stats                              CloudFlare stats
  ops couch-follow <url>                    follow a CouchDB change feed
  ops couch-replicate <document> [dst-doc]  replicate a document from one
                                            CouchDB to another, replacing (new
                                            _rev) if the document already exists
  ops couch-rewrite <document> <path>       rewrite a single key within a
  [value]                                   CouchDB document
  ops docker-tags <image>                   fetch the list of tags for an image
                                            from docker hub
  ops ec2-by-age                            list all AWS instances in a region
                                            by age
  ops ec2-can-run                           test if a particular EC2
                                            configuration will run
  ops ec2-find                              find an EC2 instance
  ops ec2-ips                               List elastic IPs for the region
  ops ec2-limits                            EC2 limits applied for this account
  ops ec2-new-docker-swarm                  create a docker swarm cluster
  ops ec2-state <instance>                  Check or alter the state of an EC2
                                            instance
  ops ec2-uptimes                           list AWS instances in a region by
                                            uptime
  ops emr-cluster-info <cluster>            Get details on a single EMR cluster
  ops emr-clusters                          List out EMR clusters for a region
  ops http-get <url>                        simple http GET against a URL
  ops lambda-functions                      list out an account's AWS Lambda
                                            functions
  ops micro-monitor <url>                   check the status of a server running
                                            micro-monitor
  ops npm-downloads [time-window]           fetch download count data from
  [...options]                              api.npmjs.org
  ops npm-versions <pkg>                    provide a summary of package version
                                            info for an npm package
  ops nsq-peek <topic>                      peek at messages in the named topic
  ops nsq-send <topic> <message>            send a message to an NSQ topic
  ops proxy <url>                           proxies to a remote URL and logs
                                            traffic for debugging
  ops s3-buckets                            list out region S3 buckets
  ops s3-info <bucket> <key>                Get metadata for an S3 object
  ops s3-list <bucket>                      List keys in an s3 bucket
  ops salt                                  generate a url-safe, base64 encoded
                                            salt for use in sharing resources
  ops site-poll <url>                       Check on the status of a site

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]