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

nsyrc

v0.1.0

Published

A command line tool for easily defining and maintaining rsync backups

Downloads

22

Readme

nsyrc

A command line tool for easily defining and maintaining rsync backups

nsyrc lets you save links between source and target folders, and rsync easily between them.


Installation

$ npm install -g nsyrc

Usage

nsyrc shows you the list of your defined links. Here is the result of running nsyrc with this .nsyrc file:

Screen shot of a result of nsyrc show

Each row represents a link. The padded columns are, from left to right:

  • id - used for syncing or removing links.
  • Source folder, Target folder, which are marked with these colors:
  • Green: local existing folder
  • Yellow: remote folders, which are not checked for existance
  • Gray: local non-existing folders, probably folders on removeable media
  • How long ago it was last synced, which is marked with these colors that represent predefined periods of time:
  • White: less than a day
  • Yellow: more than a day and less than a week
  • Red: more than a week

A pending feature will enable the user to set those period of time.

nsyrc -l <source> <target> creates a new link.

nsyrc <id> prompts the user to run the link with --dry-run first, and then without. Use --wet to skip dry-run.

nsyrc -n does the same for the first link that was not synced in the last 24 hours.

nsyrc -t <id> trashes a link. nsyrc -e empties the trash. The trash is currently only accessible through opening ~/.nsyrc


Info

  • The links data is saved as json in ~/.nsyrc
  • The default for the dry-run prompt is YES, while the default of the wet-run prompt is NO.
  • Common use is for syncing folders, but defining links between files is also possible.

Disclaimer

While nsyrc tries to distance the user from the dangers of using rsync directly, it is still a program that runs rsync commands, and that was written by a human being, and no one can guarantee that it is devoid of bugs or unexpected behaviors, therefore use this software at your own risk.


Feedback

  • If you enjoyed this tool, please star it on Github!
  • I'd love to get any feedback you might have! Mail me at [email protected], or open an issue.
  • More material appreciation is welcome in the form of bitcoins. My address can be found on this page.