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

cyberhobo

v1.0.0

Published

Offline `git push` and `npm publish` for cyberhobos

Downloads

6

Readme

cyberhobo travis npm downloads javascript style guide

Offline git push and npm publish for cyberhobos

all aspiring cyberhobos seek to follow the ways of the dominictarr

This module is gifted to cyberhobo extraordinaire, dominictarr.

features

  • Run git push and npm publish while you're offline!
  • Next time you're online, all queued commands will run in order.

usage

  1. Install it globally.
npm install -g cyberhobo
  1. Set up bash/zsh aliases for npm and git so cyberhobo will run first.
alias git='cyberhobo git'
alias npm='cyberhobo npm'

cyberhobo will detect if you're offline and intercept git push and npm publish commands, queueing them to run later when you're back online. If you're online or if you run a non push/publish command, then it will run normally.

when you're back online

If you're back in civilization and you have an internet connection, the next time you run any git or npm command, cyberhobo will run all the commands that were queued up while you were offline. They will run in order.

If any of them fails with a non-zero exit code then cyberhobo bails, printing out the remaining commands so you can run them manually. (TODO)

example

$ touch test.txt
$ git add test.txt

# oh no! lost internet connection now. keep working...

$ git commit -m "wrote some awesome code"
[master 4f5f136] wrote some awesome code
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 test.txt

$ git push
CYBER HOBO ACTIVATED! Command saved for later!

$ npm publish
CYBER HOBO ACTIVATED! Command saved for later!

# more commits, pushes, etc., ...

# later, we have internet again! Run any git/npm command to push queued commands!

$ git status
============================================================
               HEY, YOU HAVE INTERNET NOW!
Time to re-run the commands you saved while you were offline
============================================================

==== Running "git push" in /Users/feross/code/cyberhobo ====

Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 229 bytes | 0 bytes/s, done.
Total 2 (delta 1), reused 0 (delta 0)
To [email protected]:feross/cyberhobo.git
   1174974..4f5f136  master -> master


==== Running "npm publish" in /Users/feross/code/cyberhobo ===

npm http PUT https://registry.npmjs.org/cyberhobo
npm http 201 https://registry.npmjs.org/cyberhobo
+ [email protected]

CYBER HOBO MISSION COMPLETE: all up to date

On branch master
Your branch is up-to-date with 'origin/master'.

warning

This may be a horrible idea. I don't know.

license

MIT. Copyright Feross Aboukhadijeh.