{"id":27265444,"url":"https://github.com/mariachibear/cutting-ninja-cli","last_synced_at":"2025-06-18T18:07:09.118Z","repository":{"id":53092319,"uuid":"520521538","full_name":"MariachiBear/cutting-ninja-cli","owner":"MariachiBear","description":"Cutting Ninja CLI permitting to short URL's by copying them","archived":false,"fork":false,"pushed_at":"2025-06-17T13:38:01.000Z","size":409,"stargazers_count":1,"open_issues_count":15,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-17T14:36:34.431Z","etag":null,"topics":["cli","hacktoberfest","javascript","node","nodejs","shortener","tool","url","url-shortener"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MariachiBear.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-08-02T14:01:19.000Z","updated_at":"2024-05-16T16:18:30.000Z","dependencies_parsed_at":"2023-01-29T16:30:44.381Z","dependency_job_id":"65c54a97-a474-4aa6-af60-6c1e72cd25e7","html_url":"https://github.com/MariachiBear/cutting-ninja-cli","commit_stats":{"total_commits":41,"total_committers":4,"mean_commits":10.25,"dds":0.09756097560975607,"last_synced_commit":"1b3c32b3176869ff223e328588fe8dc083a7d2f7"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/MariachiBear/cutting-ninja-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MariachiBear%2Fcutting-ninja-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MariachiBear%2Fcutting-ninja-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MariachiBear%2Fcutting-ninja-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MariachiBear%2Fcutting-ninja-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MariachiBear","download_url":"https://codeload.github.com/MariachiBear/cutting-ninja-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MariachiBear%2Fcutting-ninja-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260606474,"owners_count":23035350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","hacktoberfest","javascript","node","nodejs","shortener","tool","url","url-shortener"],"created_at":"2025-04-11T07:49:05.866Z","updated_at":"2025-06-18T18:07:04.098Z","avatar_url":"https://github.com/MariachiBear.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cutting Ninja CLI [![npm version](https://badge.fury.io/js/@mariachibear%2Fcutting-ninja-cli.svg)](https://badge.fury.io/js/@mariachibear%2Fcutting-ninja-cli)\n\nCommand line tool for shorting URL's as you copy them. Using [Cutting Ninja](https://nnjct.pw/Jqq) as URL shortener and [PM2](https://nnjct.pw/jHk) as base for monitoring constantly.\n\n## Prerequisites\n\n1. [Node.js](https://nnjct.pw/jgE) and [npm](https://nnjct.pw/kS5) installed.\n\n## Installation\n\n```shell\nnpm install @mariachibear/cutting-ninja-cli --location=global\n```\n\n## Usage\n\nAt 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`.\n\n### Log In\n\nBy default, user-less URLs will be unavailable after some time, so you can log in to save the future shortened URLs as yours:\n\n```shell\nnnjct login -e your@email.com -p yourpassword\n```\n\n**_You will need to have an already registered account at Cutting Ninja_**\n\nAlso, once you have logged in, you can get your user information with :\n\n```shell\nnnjct login -i\n```\n\nYou can always log out with\n\n```shell\nnnjct logout\n```\n\n### Listener Management\n\nYou 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.\n\n```shell\nnnjct init\n\nnnjct stop\n\nnnjct info\n```\n\n### Enabling on startup\n\nAs 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)_.\n\n```shell\nnnjct enable\n\nnnjct disable\n```\n\n## Additional information\n\nFor detailed information you can always execute `nnjct -h` to get all the possible commands.\n\n```shell\nUsage: nnjct [options] [command]\n\nCutting Ninja CLI to short your URL's as you copy them\n\nOptions:\n  -V, --version    output the version number\n  -h, --help       display help for command\n\nCommands:\n  login [options]  Login into the system to save the generated URL's as yours\n  logout           Logout from the system to save the generated URL's as yours\n  init             Start the listener to short your URL's\n  info             Get information about the listener that short your URL's\n  stop             Stop the listener that short your URL's\n  enable           Show configuration to enable the listener on system startup\n  disable          Show configuration to disable the listener from system startup\n  help [command]   display help for command\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariachibear%2Fcutting-ninja-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmariachibear%2Fcutting-ninja-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariachibear%2Fcutting-ninja-cli/lists"}