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

zscripts

v0.1.1

Published

A set of utility scripts for ease of development work.

Downloads

29

Readme

ZScripts

A set of utility scripts for ease of development work.

Installation

This package is available on npm repository. Install it locally or globally:

npm i zscripts
# or globally:
npm i -g zscripts

This will create a zsc command.

Usage

To invoke it, use:

zsc [command] [options]

Commands

Npm Command

Version

zsc npm version|v [...options]
Options

-p, --patch: Updates the patch version

-m, --minor: Updates the minor version

-M, --major: Updates the major version

If no options are specified, defaults to patch.

Publish Command

NPM

Publishes the current repository to NPM, using the Git tags' semantic versioning tags as the version in the package.json.

zsc publish npm Options

-p, --private: Sets the flag to release the package as private

-y, --auto: Publishes the package without confirmation

Up Command

zsc up Options

All subcommands in the up command take in the following option flags:

-P, --host-port [host-port]: Specifies the host port for accessing the primary service, this usually defaults to the service's native port

-l, --link [existing:in-app]: Links containers to container being spun up

-n, --name [name]: Specifies the name of the container

-U, --user-id [user-id]: Specifies the user ID for the sonarqube instance

MySQL

Creates a local instance of MySQL.

zsc up mysql [...options]

Default port: 3306

zsc up mysql Options

-u, --username: Specifies the username. Defaults to "username" when not defined.

-p, --password: Specifies the password for the user specified in --username. This is also used for the root password. Defaults to "password" when not defined.

Prometheus

Creates a local instance of Prometheus.

zsc up prometheus [...options]

Default port: 9090

zsc up prometheus Options

-c, --config-file-path: Specifies a local absolute path to a configuration file for Prometheus to use. Defaults to null which means the Prometheus image uses the default file at /etc/prometheus/prometheus.yml

Redis

Creates a local instance of Redis.

zsc up redis [...options]

Default port: 6379

zsc up redis Options

None.

Sonarqube

Creates a local instance of Sonarqube.

zsc up sonarqube [...options]

Default port: 9000

zsc up sonarqube Options

-Pdb, --host-port-db: Specifies the port which will be host can expect to find the Sonarqube database. Defaults to 9092.

version Command

The zsc version [...subcommand] [...options] commands use Git tags to manage the version of a repository.

Version Bump

Bumps the version for the Git repository. Run this from inside any Git repository.

zsc version bump [...options]
zsc version bump Options

-a, --alpha: Does an alpha release (applicable only for pre-release version bumps)

-b, --beta: Does a beta release (applicable only for pre-release version bumps)

-c, --release-candidate: Does a release candidate release (applicable only for pre-release version bumps)

-r, --pre-release: Performs a pre-release version bump

-o, --pre-patch [pre-patch-id]: Performs a pre-patch version bump

-p, --patch: Performs a patch version bump

-l, --pre-minor [pre-minor-id]: Performs a pre-minor version bump

-m, --minor: Performs a minor version bump

-L, --pre-major [pre-major-id]: Performs a pre-major version bump

-M, --major: Performs a major version bump

Version Current

Outputs the current version according to the Git tags.

zsc version current Options

None.

Version Next

Outputs the next version according to the Git tags.

zsc version next Options

-a, --alpha: Does an alpha release (applicable only for pre-release version bumps)

-b, --beta: Does a beta release (applicable only for pre-release version bumps)

-c, --release-candidate: Does a release candidate release (applicable only for pre-release version bumps)

-r, --pre-release: Performs a pre-release version bump

-o, --pre-patch [pre-patch-id]: Performs a pre-patch version bump

-p, --patch: Performs a patch version bump

-l, --pre-minor [pre-minor-id]: Performs a pre-minor version bump

-m, --minor: Performs a minor version bump

-L, --pre-major [pre-major-id]: Performs a pre-major version bump

-M, --major: Performs a major version bump

Version Init

Initialises version for the Git repository at 0.0.0. Run this from inside any Git repository.

zsc version init
zsc version init Options

None.