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

rad-scripts

v4.10.59

Published

Easy semantic versioning of git repositories

Downloads

16

Readme

rad-scripts

Tools that allow you to easily use Javascript for all your scripting needs.

NOTE: previously embedded git semver commands have been moved to the git-semver module. Install the @moodboom/git-semver module to get that functionality.

Common functions and commands:

  • run_command_sync_to_console: Run one command and let output immediately flow to console
  • run_command_async_to_console:Async run one command and dump output to console when complete
  • run_command_quietly: Runs without output unless error
  • run_command: Run a command asynchronously and get the output when it finishes in a callback
  • run_command_sync: Run a command synchronously and get the output when it finishes
  • runsteps: Run a specific set of commands in specific directories
  • hasArg: Check a set of args for a value; eg: hasArg( args, '--init')
  • combine_params: Combine an array of params with separator
  • distro: Return distro name from lsb_release
  • hostname: Return hostname
  • ping_gw: Ping local gateway
  • ping_google: Ping google.com
  • cdfolder: cd to folder, return false if the folder doesn't exist
  • cdfirst: change to first found folder from list of candidates
  • make_folder: make the given folder (no matter how deep)
  • folder_exists: returns true if the folder exists
  • link_exists: returns true if the link exists
  • file_exists: returns true if the file exists
  • file_diff: returns true if the two files differ
  • find_first_folder: find and return first existing folder in a list of candidates
  • get_files_in_one_dir: non-recursive get files
  • walk: gather all files in a folder
  • walksubdirs: Similar to previous, but only returns directories not files within them.
  • fileRegexReplace: find and replace the given regex in the file
  • fileRegexReplaceMultiline: find and replace across lines (gm)
  • string_pad: Provide buffer and returns padded string
  • rad-scripts-sync: (internal) commit and publish rad-scripts; uses git-sync from @moodboom/git-semver
  • list-commands: lists all available commands
  • make-folder: [path] > makes the folder (even if deep), returns true if succeeds or already exists

Most recent commits... 68d622b 2 minutes .. Eslint flat file and formatting HEAD -> mas.. Michael Behrns-Miller [cast] 3920670 6 months ago Add name tag: 4.10.57 Michael Behrns-Miller [case] ef5fa23 7 months ago Install tag: 4.10.56 Michael Behrns-Miller [glam] 1df62bf 8 months ago Update my dependencies tag: 4.10.55 Michael Behrns-Miller [abt..

Version 4.10.59