{"id":19945862,"url":"https://github.com/blackiq/cli-wrapper","last_synced_at":"2026-02-03T11:34:11.777Z","repository":{"id":230866775,"uuid":"780121101","full_name":"BlackIQ/cli-wrapper","owner":"BlackIQ","description":"The simple nodejs http wrapper you can use in your terminal or app.","archived":false,"fork":false,"pushed_at":"2024-10-19T10:39:42.000Z","size":48,"stargazers_count":1,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-01T04:36:06.970Z","etag":null,"topics":["api","cli-wrapper","express","http-wrapper","nodejs","request"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@blackiq/cli-wrapper","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/BlackIQ.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","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},"funding":{"custom":["https://paypal.me/meBlackIQ","https://www.patreon.com/BlackIQ","https://idpay.ir/amirhosseinmohammadi"]}},"created_at":"2024-03-31T18:47:16.000Z","updated_at":"2024-10-01T06:07:39.000Z","dependencies_parsed_at":"2024-04-01T09:10:14.650Z","dependency_job_id":"4cc08dd1-8f10-4aaf-84bf-56ccfa0c661a","html_url":"https://github.com/BlackIQ/cli-wrapper","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"506a52c7ebeeade15b7e87e4a0d39719f7cd4298"},"previous_names":["blackiq/cli-wrapper"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackIQ%2Fcli-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackIQ%2Fcli-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackIQ%2Fcli-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackIQ%2Fcli-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlackIQ","download_url":"https://codeload.github.com/BlackIQ/cli-wrapper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252216098,"owners_count":21713099,"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":["api","cli-wrapper","express","http-wrapper","nodejs","request"],"created_at":"2024-11-13T00:27:14.436Z","updated_at":"2026-02-03T11:34:11.736Z","avatar_url":"https://github.com/BlackIQ.png","language":"JavaScript","readme":"# CLI Wrapper\n\n**CLI Wrapper** is command line wrapper you can install to use in your terminal. You can even use it in your apps.\n\nIn this instructure you will learn about how to use this package in your apps.\n\n## Table of content\n\n- [Installation](#installation)\n- [Run]($run)\n\u003c!-- - [methods](#methods) --\u003e\n- [Development](#development)\n\n## Installation\n\nHow to install **CLI Wrapper**? To install this package, use **NPM**.\n\n```shell\n$ npm i -g @blackiq/cli-wrapper\n```\n\n\u003e We use `-g` to install the package **globally**.\n\n\u003c!-- ## Config\n\nSo, import the package.\n\n```javascript\n// ESM 6 and higher\nimport RayID from \"rayid\";\n\n// ESM 5 and lower\nconst RayID = require(\"rayid\");\n```\n\nNow create your instance with what kind of rayid you want.\n\n- digit: Numbers\n- lower: Alphabet in lower case.\n- upper: Alphabet in upper case.\n- symbol: Symbols for password and stuff.\n\n\u003e No type means all combined togather.\n\n```javascript\nconst ray = new RayID(\"lower\");\n``` --\u003e\n\n\u003c!-- ## Methods\n\nOnly one method! `gen()`.\n\n### `gen()`\n\nin **gen()** just say the length.\n\n\u003e There is no limit :)\n\n```javascript\nconst r = ray.gen(50);\nconsole.log(r); // zpciqivbkgoubrurrnozqhcdzlerjkllgtwbqbhllrxcremprd\n```\n\nOr do it inside.\n\n```javascript\nconsole.log(ray.gen(50)); // clherhvpkhwynhqhzluozionumnjqgjroeiymgqvlaknzjtdic\n```\n\n## Examples\n\nCreate common instances.\n\n```javascript\nconst ray = new RayID(); // All values\nconst srt = new RayID(\"lower\"); // Loercase generator\nconst int = new RayID(\"digit\"); // Only int generator\nconst sym = new RayID(\"symbol\"); // Symbol generator\n```\n\nNow use them:\n\n```javascript\nconsole.log(ray.gen(10)); // Z*jVQ3c:+H\nconsole.log(srt.gen(10)); // ksixvpqohi\nconsole.log(int.gen(10)); // 4748182066\nconsole.log(sym.gen(10)); // ?,^.+\u003c/::/\n``` --\u003e\n\n## Run\n\nOk, to run the wrapper, just enter this command in your terminal:\n\n```bash\n$ cli-wrapper\n```\n\nYou are now running it in port 3000. If you want to use your own port, use `--port`.\n\n```bash\n$ cli-wrapper --port 8000\n```\n\nAll done!\n\n---\n\n## Development\n\nIf you want to develop the package, it is so simple. just follow steps below.\n\n- Clone the project\n- Install dependencies by running `$ npm install`\n- Start changing!\n  - Link package\n  - Test\n\n\u003e Before you start: **Remember the base or code are stored in `lib/wrapper.js`**. You need to edit there.\n\n### Cloning the project\n\nTo clone the project, you need to have git installed. Ok, now clone it same as command below.\n\n```shell\n$ git clone https://gitlab.com/BlackIQ/cli-wrapper\n```\n\n### installing dependencies\n\nNext, install what package uses with `npm i` or `npm install`.\n\n```shell\n$ npm i\n```\n\n### Changing\n\nTo change package or anything, your need a testing environment to use linked package. Just follow steps.\n\n#### Link package\n\nWe asoume you are in `lib` directory. Right. You can open a **tmux** or in another terminal to cd in `test` directory.\n\nIn `lib` directory enter link command:\n\n```shell\n$ npm link\n```\n\nSo, in other terminal, or other tmux part, link your development package to your `test` directory. If you are in the `test` directory ok, if not, just say `cd test` and enter the linking command:\n\n```shell\n$ npm link cli-wrapper\n```\n\nLinking step is done.\n\n#### Test\n\nYour test app is linked. Change anything in package and test it in `test` directory.","funding_links":["https://paypal.me/meBlackIQ","https://www.patreon.com/BlackIQ","https://idpay.ir/amirhosseinmohammadi"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackiq%2Fcli-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackiq%2Fcli-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackiq%2Fcli-wrapper/lists"}