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

@sugarcube/plugin-tap

v0.42.1

Published

K-combinators for sugarcube.

Downloads

13

Readme

@sugarcube/plugin-tap

Plugins for SugarCube for side effect only.

Installation

npm install --save @sugarcube/plugin-tap

Plugins

tap_printf

$(npm bin)/sugarcube -c cfg.json -p twitter_feed,tap_printf

Prints the whole envelope (i.e. data and queries) and the full configuration to the screen.

Configuration:

  • tap.select :: Specify the elements to print to the screen. Defaults to data. Valid values are data, queries, stats, cache, plugins and cfg. Specify multiple values by separating values by a comma.

    Example: Print only data and queries to the screen.

    $(npm bin)/sugarcube -p tap_printf --tap.select data,queries

  • tap.limit :: Limit the output to X data units.

    Example: Print only 5 units of data.

    $(npm bin)/sugarcube -c cfg.json -p twitter_feed,tap_printf --tap.limit 5

  • tap.exclude :: Exclude those fields from printing.

    $(npm bin)/sugarcube -c cfg.json -p http_import,tap_printf --tap.exclude body,_sc_body

tap_writef

$(npm bin)/sugarcube -c cfg.json -p twitter_feed,tap_writef

Write the data part of the envelope to a file.

Configuration:

  • tap.limit :: Limit the output to N data units.

    Example: Print only 5 units of data.

    $(npm bin)/sugarcube -c cfg.json -p twitter_feed,tap_writef --tap.limit 5

  • tap.filename :: Specify the name of the output file. Defaults to data-<marker>.json.

  • tap.chunk_size :: Split the data into multiple chunks and write each chunk into it's own file. The file name is based on tap.filename but the chunk id is injected into the filename.

License

GPL3 @ Christo