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

zen-pipes

v0.0.10

Published

zen-pipes - natural language commands, for readable CLI pipes

Downloads

1

Readme

zen-pipes

TLDR: Humane command-line pipe functions.

cat package.json | zen trim each line  | zen add line numbers > o.txt

Challenges

Challenge 1 - Understand what the sequence below does. Hopefully its self-explanatory (that's the goal of zen).

zen new uuid  | zen uppercase  | zen remove hyphens

Challenge 2 - Perform the above with traditional command-line tooling (ideally, without referencing the manual)

...

How did it go? Did you manage it? Send your answers in to: [email protected]

Purpose

Infrastructure is moving to code (Yay!) - but 'code' needs to be readable, and when your build needs to do a little impromptu data maniupulation - traditional commands are not that readable - IE Can you spot the fake in: bc, renice, xy, mknod, fsck?

(And we've not even mentioned the switches/flags of those commands. If you're lucky there are --long form flags but the -s short form is normally used for extra compactness - which do you use?)

There's a tension here - command-line tools have short names because they are designed to be typed... a lot; and as you're typing them a lot, you KNOW what they mean - so short names win. However in a build script, we only need to type the commands once, but we want them to be readable for the future.

Zen keeps all the composable goodness that is the hallmark of the unix command line, but aims to be fully readable and transparent.

TODO 

Stream data through rather than read-all-in, write-all-out.
Current approach should be fine for most uses, but large files / data may not fit in memory.


Formalise injection attack protection (each language keyword must come from a separate 
command line argument - ensuring the meaning of a command can't be changed with parameters).