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

kmder

v0.1.4

Published

<h3 align="center"> <br> <img width="400" src="https://rawgit.com/brandon93s/kmder/master/media/logo.svg" alt="kmder" /> <br> <br> </h3>

Downloads

14

Readme

kmder Build Status

Kmder is a CLI runner that aims to make writing, executing and distributing CLI commands a breeze. :palm_tree:

Features

  • ✏️ Simple, often declarative command definitions
  • 📦 Out of the box support for HTTP, SQL, Elasticsearch and more
  • 😍 Build shareable commands - easily distribute directly or in a repo
  • 📡 Built-in reporting - log your CLI output as a table, pretty-json, etc

Install

Install with yarn:

yarn global add kmder

or with npm:

npm install kmder --global

CLI Usage

> kmd help
  <kmd> <..args>     Execute kmd
  ls                 List available kmd(s)
  help               Display help
  source             Manage kmd sources
  version            List kmd version
  reset              Reset sources and settings

Examples

Browse kmder-kmds for additional command examples.

The following defines the declarative fx command which retrieves current exchange rates for the given currencies:

// fx.json
{
    "type": "http",
    "url": "https://api.fixer.io/latest?base={0}&symbols={1}",
    "jp": "$.rates.{1}"
}
> kmd fx USD GPB
0.73792
// user.json
{
  "type": "mysql",
  "connection": {
    "host": "db.example.com",
    "user": "kmdertest",
    "password": "kmder-test",
    "database": "kmdertest"
  },
  "query": "SELECT user_name, first, last FROM `users` WHERE `user_name` LIKE '%{0}%'"
}
> kmd user bsmith
----------------------------
user_name | first   | last |
----------------------------
bsmith    | Brandon | Smith

The following defines the max command which returns the maximum value passed to the command. This example shows that a command can be custom, arbitrary JavaScript:

// max.js
module.exports.run = (args) => {
  return Math.max(...args)
}
> kmd max -5 5 9 99 -99
99

Documentation

Browse the wiki for full documentation:

  • Managing command sources (folders, repositories, etc)
  • Available strategies (http, mysql, mssql, es, etc) and their options
  • Command definitions (method hooks, types, dependencies)
  • Persistent data storage for commands
  • And more!

License

MIT © Brandon Smith