{"id":23957111,"url":"https://github.com/yaxingson/pretty-shell","last_synced_at":"2026-03-01T23:03:19.919Z","repository":{"id":259228694,"uuid":"805227116","full_name":"yaxingson/pretty-shell","owner":"yaxingson","description":"Utilities for using unix shell commands from node.js","archived":false,"fork":false,"pushed_at":"2025-09-15T12:42:05.000Z","size":180,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-01T17:55:03.974Z","etag":null,"topics":["commands","node","shell","terminal"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/yaxingson.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-05-24T06:25:38.000Z","updated_at":"2025-09-15T12:42:08.000Z","dependencies_parsed_at":"2024-10-28T08:23:48.089Z","dependency_job_id":"8e13b28f-c95f-4033-9168-d93d2d5da00d","html_url":"https://github.com/yaxingson/pretty-shell","commit_stats":null,"previous_names":["soetas/node-dos","yaseensun/node-dos","gavosun/node-dos","yaxingson/node-dos","yaxingson/pretty-shell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yaxingson/pretty-shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaxingson%2Fpretty-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaxingson%2Fpretty-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaxingson%2Fpretty-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaxingson%2Fpretty-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaxingson","download_url":"https://codeload.github.com/yaxingson/pretty-shell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaxingson%2Fpretty-shell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29987656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T22:42:38.399Z","status":"ssl_error","status_checked_at":"2026-03-01T22:41:51.863Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["commands","node","shell","terminal"],"created_at":"2025-01-06T16:39:43.619Z","updated_at":"2026-03-01T23:03:19.913Z","avatar_url":"https://github.com/yaxingson.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cimg src=\"./logo.png\" /\u003e\n  \u003cp\u003e\n    \u003ca\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/shelljs/shelljs/main.yml?style=flat-square\u0026logo=github\" /\u003e\u003c/a\u003e\n    \u003ca\u003e\u003cimg src=\"https://img.shields.io/codecov/c/github/shelljs/shelljs/master.svg?style=flat-square\u0026label=coverage\" /\u003e\u003c/a\u003e\n    \u003ca\u003e\u003cimg src=\"https://img.shields.io/npm/v/shelljs.svg?style=flat-square\" /\u003e\u003c/a\u003e\n    \u003ca\u003e\u003cimg src=\"https://img.shields.io/npm/dm/shelljs.svg?style=flat-square\" /\u003e\u003c/a\u003e\n    \u003ca\u003e\u003cimg src=\"https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\" /\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/h1\u003e\n\n## Quick start\n\n### Install \n\n```shell\n# via npm\n$ npm i pretty-shell --save\n$ npm i pretty-shell -g\n\n```\n\n### Usage\n\nCommand line：\n\n```shell\n$ shx mkdir -p foo\n$ shx touch foo/bar.txt\n$ shx rm -rf foo\n\n```\n\nNode API:\n\n```js\nconst shell = require('pretty-shell')\nconst { mkkdir, touch , rm } = require('pretty-shell')\n\n```\n\n### Configuration\n\n## Commands\n\n| category  | command  | description |\n|  -----    |  ------  |  -----      |\n|  fs       |  cd        |  Change the shell working directory. |\n|           |  ls          | List information about the FILEs (the current directory by default). |\n|           |  cat         | Concatenate FILE(s) to standard output. |\n|           |  cp         | Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY. |\n|           |  find         | Search for files in a directory hierarchy. |\n|           |  pwd          | Print the name of the current working directory. |\n|           | mkdir   | Create the DIRECTORY(ies), if they do not already exist. |\n|   | rm | Remove (unlink) the FILE(s). |\n|   | rmdir  | Remove the DIRECTORY(ies), if they are empty. |\n|   | mv | Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY. |\n|   | grep  | PATTERNS can contain multiple patterns separated by newlines. |\n|   | chmod | Change the mode of each FILE to MODE. |\n|   | chown | Change the owner and/or group of each FILE to OWNER and/or GROUP. |\n|   | touch | Update the access and modification times of each FILE to the current time. |\n|   | whereis | Locate the binary, source, and manual-page files for a command. |\n|   | find | Search for files in a directory hierarchy. |\n|   | zip | Package and compress (archive) files. |\n|   | unzip | List, test and extract compressed files in a ZIP archive. |\n|   | gzip  | Compress or uncompress FILEs (by default, compress FILES in-place). |\n|   | tar   | An archiving utility. |\n|   | tail  | Print the last 10 lines of each FILE to standard output. |\n|   | ln | Make links between files. |\n|   | stat | Display file or file system status. |\n|   | egrep | PATTERNS can contain multiple patterns separated by newlines. |\n|   | more  | A file perusal filter for CRT viewing. |\n|   | less  | |\n|   | head | Print the first 10 lines of each FILE to standard output. |\n|   | tail | Print the last 10 lines of each FILE to standard output. |\n|   | tac  | Write each FILE to standard output, last line first. |\n|   | nl   | Write each FILE to standard output, with line numbers added. |\n|   | wc   | Print newline, word, and byte counts for each FILE, and a total line if more than one FILE is specified. |\n|   | split | Output pieces of FILE to PREFIXaa, PREFIXab, ... |\n|   | cut  | Print selected parts of lines from each FILE to standard output. |\n|   | paste | Write lines consisting of the sequentially corresponding lines from each FILE, separated by TABs, to standard output. |\n|   | sort | Write sorted concatenation of all FILE(s) to standard output. |\n|   | uniq | Filter adjacent matching lines from INPUT (or standard input), writing to OUTPUT (or standard output). |\n|   | diff | Compare FILES line by line. |\n|   | patch |  Apply a diff file to an original. |\n|   | join  | For each pair of input lines with identical join fields, write a line to standard output. |\n|   | tr    | Translate, squeeze, and/or delete characters from standard input, writing to standard output. |\n|   | sed   | Stream editor for filtering and transforming text. |\n|   | awk   | Pattern scanning and processing language. |\n|   | du    | Summarize disk usage of the set of FILEs, recursively for directories. |\n|   | df    | Show information about the file system on which each FILE resides, or all file systems by default. |\n|   | sync  | Synchronize cached writes to persistent storage. |\n|   | mount | Mount a filesystem. |\n|   | dd    | Copy a file, converting and formatting according to the operands. |\n|   | zip  | Package and compress (archive) files. |\n|   | zcat | Uncompress FILEs to standard output. |\n|   | xz   | Compress or decompress FILEs in the .xz format. |\n|   | bzip2 | A block-sorting file compressor. |\n|   | free  | Display amount of free and used memory in the system. |\n|   net     |  ifconfig     | Configure a network interface. |\n|           |  netstat     | Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships. |\n|           |  ping     |  Send ICMP ECHO_REQUEST to network hosts. |\n|   | traceroute | Print the route packets trace to network host. |\n|   | ss  | Another utility to investigate sockets. |\n|   | telnet | User interface to the TELNET protocol. |\n|   | ssh  | OpenSSH remote login client. |\n|   | ftp  | Internet file transfer program. |\n|   | ip   | show / manipulate routing, network devices, interfaces and tunnels. | \n|   | sftp | OpenSSH secure file transfer. |\n|   | lftp |  Sophisticated file transfer program. |\n|   | wget | The non-interactive network downloader. |\n|   | scp  |  OpenSSH secure file copy. |\n|   | curl | Transfer a URL. |\n|   | host | DNS lookup utility. |\n|  os       |  date     ||\n|           |  free     ||\n|           |  uname     ||\n|           | nohup    ||\n|   | df | Show information about the file system on which each FILE resides, or all file systems by default. |\n|   | top | Display Linux processes. |\n|   | free | Display amount of free and used memory in the system. |\n|   | history |  Display or manipulate the history list. |\n|   | ps | report a snapshot of the current processes. | \n|   | pstree | Display a tree of processes. |\n|   | systemctl |  Query or send control commands to the system manager. |\n|   | help | Display information about builtin commands. |\n|   | w | Show who is logged on and what they are doing. |\n|   | whoami | Print the user name associated with the current effective user ID. |\n|   | last | Show a listing of last logged in users. |\n|   | kill | Send a signal to a process. |\n|   | firewall-cmd | | \n|   | uptime | Tell how long the system has been running. |\n|   | ulimit |  Modify shell resource limits. |\n|   | service | Run a System V init script. |\n|   | ipcs | Show information on IPC facilities. |\n|   | ipcrm | Remove certain IPC resources. |\n|   | bc | An arbitrary precision calculator language. |\n|   | watch | Execute a program periodically, showing output fullscreen. |\n|   | time | Run programs and summarize system resource usage. |\n|   | reboot | Reboot the system. |\n|   | init | Send control commands to the init daemon. |\n|   | date | Display the current time in the given FORMAT, or set the system date. |\n|   | cal  | Displays a calendar and the date of Easter. |\n|   | htop | Interactive process viewer. |\n|   | lscpu | Display information about the CPU architecture. |\n|   | rsync | A fast, versatile, remote (and local) file-copying tool. |\n|   | ssh-keygen | OpenSSH authentication key utility. |\n|   | shutdown | Shut down the system. |\n|   | lsof | List open files. |\n|   | jobs |  |\n|   | nohup | Run COMMAND, ignoring hangup signals. |\n|   | env | Set each NAME to VALUE in the environment and run COMMAND. |\n|   | xargs | Run COMMAND with arguments INITIAL-ARGS and more arguments read from input. |\n|   | exec  | |\n|   | crontab | Maintain crontab files for individual users (Vixie Cron). |\n\n\n\n## Examples\n\n```js\nconst { find } = require('pretty-shell')\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaxingson%2Fpretty-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaxingson%2Fpretty-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaxingson%2Fpretty-shell/lists"}