0.1.1 • Published 2 years ago

@mariachibear/cutting-ninja-cli v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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 your@email.com -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
0.1.1

2 years ago

0.1.0

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago