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

quickgraph

v0.0.22

Published

Commandline tool to quickly make graphs from arbitrary text files

Downloads

5

Readme

QuickGraph

A commandline tool to quickly make graphs from arbitrary text files.

Released under the Boost Software License (Version 1.0).

Note: I wouldn't use this just yet. It is probably littered with bugs and certainly incomplete ideas.

Syntax

Syntax: qg [options] logfile [... logfile]
Options:
        -h,--help                  This help output
        -v,--verbose               Verbose mode
        -o,--output FILENAME       Output filename (default: quickgraph.html)
        -a,--alias ALIAS           Use named alias from your home directory's .quickgraphrc
        -g,--graph                 Begin a new graph. This is not necessary if you're only making one
        -t,--title TITLE           Sets the title of the current graph
        -x REGEX                   Matches a new X axis value, parsed by -e, formatted with -f or -F
        -y REGEX                   Matches a new Y axis value, parsed by -e, formatted with -f or -F
        -c,--color COLOR           Sets the color for the current rule (only makes sense on Y axis rules)
        -l,--legend LEGEND         Sets the legend for the current axis
        -e,--eval CODE             Sets the evaluator for the axis regex's output. See examples
        -f,--format CODE           Sets the code used to format an x axis value
        --consolidate FUNC         Sets the consolidation function for the current axis (sum, count, avg, min, max, last)
        --width                    Sets the graph's width. Defaults to use the whole width of the browser.
        --height                   Sets the graph's height. Defaults to 480.
        -A RESTOFLINE              Create a new alias (like in quickgraphrc) statement; only works in a response file

Example 1

Data (example1.txt):

2015-12-16 5
2015-12-17 6
2015-12-18 7
2015-12-19 6
2015-12-20 5
2015-12-21 6
2015-12-22 8
2015-12-23 4
2015-12-24 3

Commandline:

qg example1.txt -x "^[-\d]+" -a date -y "\d+$"

Example1

Example 2

Data: (example2.txt)

00:01:00 memory usage 21.3mb
00:01:03 memory usage 22.0mb
00:01:05 memory usage 21.3mb
00:01:09 memory usage 23.1mb
00:01:35 memory usage 24mb
00:01:45 memory usage 25mb
00:01:47 memory usage 27.3mb
00:01:49 memory usage 27.9mb
00:01:50 memory usage 28.3mb

Commandline:

qg example2.txt -x "(?<H>\d\d):(?<M>\d\d):(?<S>\d\d)" -e "@f.H*[email protected]*[email protected]" -y "memory usage ([\d\.]+)mb" -l "Memory Usage"

Example2