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

sekr8s

v0.1.0

Published

A command-line Secrets helper for Kubernetes.

Downloads

4

Readme

sekr8s: A Kubernetes Secrets CLI

This package provides a CLI for interacting with a Kubernetes server to create, read, and update Secrets on the server.

This depends on having kubectl installed on your path, and will not function otherwise. It also depends on having node + npm installed.

Installation

Install kubectl and node, then run:

npm install -g sekr8s

or with yarn:

yarn global add sekr8s

Usage

Run sekr8s -h for help, and sekr8s {cmd} -h for command-specific help.

Read a Secret

Read all keys from a secret, printing them in base64:

$ sekr8s get my-secret
All keys from my-secret -
bar: YmFyaw==
foo: Zm9vZA==

Read all keys, printing them decoded (this will be annoying for binary values):

$ sekr8s get -d my-secret
All keys from my-secret -
bar: bark
foo: food

Read a single key:

$ sekr8s get -d my-secret foo
Selected keys from my-secret -
foo: food

Read a single key, and pipe the output to a file (this is especially good for binary data):

$ sekr8s get -d -q my-secret foo > foo.txt
$ cat foo.txt
food⏎

Set values in a Secret

Set a list of keys, typing in raw values:

$ sekr8s set my-secret foo bar
New unencoded value for foo: fool
New unencoded value for bar: bard
my-secret updated.

Set a single value, piped in from file:

$ cat foo.txt | sekr8s set my-secret foo
my-secret updated.

Set a base64-encoded valu (useful for keys with newlines):

$ echo -n -e 'foodie\nfool' | base64 | sekr8s set --encoded my-secret foo
my-secret updated.

Create a Secret

Create with keys foo and bar:

$ sekr8s create my-secret foo bar
New unencoded value for foo: food
New unencoded value for bar: bark
my-secret updated.