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

@halvaradop/shortify-cli

v0.0.3

Published

A command-line tool that allows you to quickly and efficiently shorten URLs, generating short and easy-to-share links

Downloads

3

Readme

@halvaradop/shortify-cli

@halvaradop/shortify-cli is a powerful terminal-based tool that helps you shorten lengthy URLs for easier sharing and management. It offers a variety of options to customize URLs according to your style, view statistics of shortened links, and maintain a list of your creations.

Installation

Install the package globally using npm

npm i -g @halvaradop/shortify-cli

Usage

Shortify CLI provides a clear structure for shortening URLs

shortify <source-url> [options]

<source-url>

This represents the long URL you want to shorten. For guaranteed success, it's recommended to enclose the URL in quotes, especially if it contains special characters.

[options]

These flags let you customize the shortened URL and manage your existing links:

  • -s or --stats: View detailed statistics for a specific shortened URL, providing insights into its usage
  • -r or --remove: Permanently remove a shortened URL from your list
  • -c or --create (default): Creates a shortened URL based on the provided source URL.
  • -d or --domain: Define a custom domain (if supported by the shortening service) for your shortened URLs
  • -i or --short-id: Customize the unique identifier (short code) for the shortened URL, allowing you to create more memorable links.

Examples

# Shorten a URL with default options
shortify "https://www.example.com/very-long-url"

# View statistics for a shortened URL
shortify -s "https://your-shortened-link.com"  # Replace with your actual shortened URL

# Remove a shortened URL
shortify -r "https://your-shortened-link.com"  # Replace with your actual shortened URL

# Create a shortened URL with a custom short code
shortify "https://www.example.com/another-long-url" -i "my-custom-code"