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

@mariachibear/cutting-ninja-cli

v0.1.2

Published

Cutting Ninja CLI permitting to short URL's by copying them

Downloads

20

Readme

Cutting Ninja CLI npm version

Command line tool for shorting URL's as you copy them. Using Cutting Ninja as URL shortener and PM2 as base for monitoring constantly.

Prerequisites

  1. Node.js and npm installed.

Installation

npm install @mariachibear/cutting-ninja-cli --location=global

Usage

At the moment of the package install you can start copying URLs and they will be automatically shortened and added to your clipboard. This way you should just Ctrl+C and Ctrl+V.

Log In

By default, user-less URLs will be unavailable after some time, so you can log in to save the future shortened URLs as yours:

nnjct login -e [email protected] -p yourpassword

You will need to have an already registered account at Cutting Ninja

Also, once you have logged in, you can get your user information with :

nnjct login -i

You can always log out with

nnjct logout

Listener Management

You can initialize, stop and get information from the listener with those commands. This is useful when you don't need short URLs for a while.

nnjct init

nnjct stop

nnjct info

Enabling on startup

As PM2 is used for maintaining the listener alive, it is possible to configure the listener to be started when entering the operating system. TThose commands will show you what to run to achieve it (No compatible with Windows for the moment).

nnjct enable

nnjct disable

Additional information

For detailed information you can always execute nnjct -h to get all the possible commands.

Usage: nnjct [options] [command]

Cutting Ninja CLI to short your URL's as you copy them

Options:
  -V, --version    output the version number
  -h, --help       display help for command

Commands:
  login [options]  Login into the system to save the generated URL's as yours
  logout           Logout from the system to save the generated URL's as yours
  init             Start the listener to short your URL's
  info             Get information about the listener that short your URL's
  stop             Stop the listener that short your URL's
  enable           Show configuration to enable the listener on system startup
  disable          Show configuration to disable the listener from system startup
  help [command]   display help for command