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

@leiops/dev-cli

v1.9.0

Published

A bundle of command line tools for Ops developers.

Downloads

10

Readme

dev-cli

npm

style guide

everything the user sees in the ops cli (including the docs!) is written in lower case

exceptions are made for proper nouns

removing casing as a concern makes the cli easier to interact with

development

run npm link to see your changes reflected immediately

in some cases, you may get this error -bash: ops: command not found this is fixed by running npm i -g

all code connected to the index folder will be transpiled by Babel

the only features that won't work are import/export - for those you have to stick with commonjs require and module.exports

the ops cli is only meant to work on unix systems running node

wishlist

there is a noticeable lag whenever i run ops anything. clearly some overhead config is being repeated, how can we get rid of that?

tab completion? https://www.npmjs.com/package/omelette

https://github.com/SBoudrias/Inquirer.js

ops stack - get the current stack (will require some kind of cli authentication) https://stackoverflow.com/questions/20430973/saving-cookie-with-curl-on-linux

ops morning - log the user in, pull from remote, start dev processes, on friday remind about timecard ops evening - sync code

ops sync - sync up with the current branch, git fetch new branches, prompt for a commit message with the results of git status

ops deploy (major|minor|patch) - update the version number, make sure jenkins is set to gzn, build, make updates ops build - like the above, except make sure jenkins is set to sbx - I'm sure there's a jenkins api

ops version - related to ops deploy, step the version forward, contribute to docs for that new version

ops clean - delete components that aren't being used anywhere unless they are more than just boilerplate

ops new (component|service|model...) - wire up a new whatever ops remove (component-name) - count all the uses of the component, prompt the user to confirm, and then remove it ops move (component-name) - prompt the user for a destination, then move the component

ops git shortcuts: checkout the current deploy branch commit feature/fix/chore/refactor syncw

ops config, automatically find the js repo

scratchwork

to do

  • Figure out how to do basic authentication/ssh stuff
  • Get bounce command working
  • Get timecard command working
  • Get root commands to display lists of sub-commands when none are provided
  • Write rename script

I wonder if there's a way to make a more explicit router:

ops
|
|_____  ...
|     |
g    dev
|
|_____
|
component

ops {

	_ {
		dev, dist, greet, version, stack...
	}

	generate {
		component {
			root, common...
		}
	}

	dev {

	}
}

config schema


{
	// path to the ops client folder where
	// the package json config lives
	ops_client_path: String, // no default

	// timecard information
	timecard: {
		constants: {
			// ...
		} // {}
		data: {
		} // {}
	}

	// the user's full name
	name: {
		full: String,
		first: String,
		last: String
	}, // {}

	// text editor to open new files in, one of "Sublime Text", "Atom"
	preferred_editor: String, // "Atom"
	// slack webhooks urls
	slack_webhook_url: {
		qa: String // no default
	}
}