@mariachibear/cutting-ninja-cli

0.1.2 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.24latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.24
0.1.11
0.1.01
0.0.141
0.0.131
0.0.121
0.0.111
0.0.101
0.0.91
0.0.81
0.0.61
0.0.51
0.0.41
0.0.31
0.0.21
0.0.11

Package Sidebar

Install

npm i @mariachibear/cutting-ninja-cli

Weekly Downloads

19

Version

0.1.2

License

MIT

Unpacked Size

17.6 kB

Total Files

14

Last publish

Collaborators

  • ruben_conmag