{"id":16639783,"url":"https://github.com/artemave/meshell","last_synced_at":"2025-08-16T11:09:58.878Z","repository":{"id":57295133,"uuid":"287829261","full_name":"artemave/meshell","owner":"artemave","description":"Dead simple shell commands from Node","archived":false,"fork":false,"pushed_at":"2024-01-25T21:16:43.000Z","size":40,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-07T04:19:38.913Z","etag":null,"topics":["nodejs","shell"],"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/artemave.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}},"created_at":"2020-08-15T21:43:05.000Z","updated_at":"2024-01-25T21:16:46.000Z","dependencies_parsed_at":"2024-10-12T07:07:05.060Z","dependency_job_id":"290315d6-cb37-49c8-bb40-ae117901f71a","html_url":"https://github.com/artemave/meshell","commit_stats":{"total_commits":27,"total_committers":2,"mean_commits":13.5,"dds":0.4814814814814815,"last_synced_commit":"a2a48d7b2f9f45d8c0098372414fd4e68900586d"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/artemave/meshell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemave%2Fmeshell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemave%2Fmeshell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemave%2Fmeshell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemave%2Fmeshell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artemave","download_url":"https://codeload.github.com/artemave/meshell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemave%2Fmeshell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270702562,"owners_count":24630877,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["nodejs","shell"],"created_at":"2024-10-12T07:07:02.532Z","updated_at":"2025-08-16T11:09:58.848Z","avatar_url":"https://github.com/artemave.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Meshell [![Codeship Status for artemave/meshell](https://app.codeship.com/projects/f1418e50-8730-4d39-ab61-ae5244c15eb6/status?branch=master)](https://app.codeship.com/projects/415871) [![npm version](https://badge.fury.io/js/meshell.svg)](https://badge.fury.io/js/meshell)\n\nSacré bleu! Running shell commands from Node just can't get any simpler.\n\n## Why?\n\nI _always_ have to look up `child_process` whenever I need to run some shell command in Node. While this may be a good thing - I will learn something eventually - sometimes I just want to run the damn thing.\n\nThis library offers a really really straitforward way to run shell commands. I dare you to not get it.\n\n## Usage\n\n    npm install meshell\n\n\n```javascript\nconst Shell = require('meshell')\n\nconst sh = new Shell()\n\n// output is both stdout and stderr\nconst output = await sh('ls -la')\n\n// background process; returns pid instead of output; does not wait for the process to complete\nconst pid = await sh('sleep 10', {bg: true})\n\n// collect output as it comes\nawait sh('git push heroku master', {outputStream: process.stdout})\n\n// throws on exit code \u003e 0\nawait sh('cat /does/not/exist')\n\n// start in a particular directory (defaults to process.cwd())\nconst sh = new Shell({cwd: '/some/dir'})\n\n// change it later\nsh.cd('../test')\n\n// where are we?\nsh.cwd // =\u003e /some/test\n```\n\nPrint all commands and their output to console:\n\n    DEBUG=meshell node myScript.js\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartemave%2Fmeshell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartemave%2Fmeshell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartemave%2Fmeshell/lists"}