{"id":20549867,"url":"https://github.com/itsthatguy/run-command","last_synced_at":"2025-03-06T05:41:16.459Z","repository":{"id":18709749,"uuid":"21920397","full_name":"itsthatguy/run-command","owner":"itsthatguy","description":"Run synchronous shell commands from within node","archived":false,"fork":false,"pushed_at":"2015-03-13T04:19:05.000Z","size":264,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-16T15:18:40.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itsthatguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-16T22:28:25.000Z","updated_at":"2015-03-13T04:19:06.000Z","dependencies_parsed_at":"2022-09-12T03:10:44.018Z","dependency_job_id":null,"html_url":"https://github.com/itsthatguy/run-command","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsthatguy%2Frun-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsthatguy%2Frun-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsthatguy%2Frun-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsthatguy%2Frun-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsthatguy","download_url":"https://codeload.github.com/itsthatguy/run-command/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234216799,"owners_count":18797668,"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":[],"created_at":"2024-11-16T02:21:37.326Z","updated_at":"2025-01-16T16:39:02.453Z","avatar_url":"https://github.com/itsthatguy.png","language":"JavaScript","readme":"# Run Commands\n\nRun synchronous shell commands from within node\n\n### Simple Example\n\n```coffee\n# postinstall.coffee\n\nrunCommand = require(\"run-command\")\n\nrunCommand \"bower\", ['install'], -\u003e\n  runCommand \"gulp\"\n```\n\n\n### Slightly more Advanced Example\n\n```coffee\n# start.coffee\n\nrunCommand = require(\"run-command\")\n\nconsole.log(\"\u003e\u003e NODE_ENV: \" + process.env.NODE_ENV)\n\nrunCommand(\"coffee\", ['app.coffee'])\n\nif (process.env.NODE_ENV == \"development\")\n  runCommand \"gulp\", ['watch-pre-tasks'], -\u003e\n    runCommand(\"gulp\", ['watch'])\n```\n\n### Configuration\n\n```coffee\nrunCommand.set('info', false)    # turn off info messages\nrunCommand.set('warning', false) # turn off warning messages\nrunCommand.set('error', false)   # turn off error messages\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsthatguy%2Frun-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsthatguy%2Frun-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsthatguy%2Frun-command/lists"}