{"id":17419172,"url":"https://github.com/axtgr/yargs-default-command","last_synced_at":"2026-06-06T18:31:20.208Z","repository":{"id":57403219,"uuid":"45756228","full_name":"axtgr/yargs-default-command","owner":"axtgr","description":"DEPRECATED","archived":false,"fork":false,"pushed_at":"2017-04-19T03:38:01.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-19T13:40:02.244Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/axtgr.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":"2015-11-07T21:51:13.000Z","updated_at":"2017-04-19T03:32:47.000Z","dependencies_parsed_at":"2022-09-15T14:40:10.696Z","dependency_job_id":null,"html_url":"https://github.com/axtgr/yargs-default-command","commit_stats":null,"previous_names":["alex-shnayder/yargs-default-command"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtgr%2Fyargs-default-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtgr%2Fyargs-default-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtgr%2Fyargs-default-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtgr%2Fyargs-default-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axtgr","download_url":"https://codeload.github.com/axtgr/yargs-default-command/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241465077,"owners_count":19967243,"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-10-17T02:17:25.839Z","updated_at":"2026-06-06T18:31:19.227Z","avatar_url":"https://github.com/axtgr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## DEPRECATED\n\nSince v7.0.0, yargs supports default commands natively.\n\n----------\n\n# yargs-default-command\n\nA plugin for [yargs](https://github.com/bcoe/yargs) which allows adding a default command that will match if called without a command or no other command matches.\n\n## Install\n\n`npm install --save yargs-default-command`\n\n## Example\n\nindex.js:\n```javascript\n#!/usr/bin/env node\n\nvar yargs = require('yargs');\nvar args = require('yargs-default-command')(yargs);\n\nargs\n  .command('*', 'default command', function(yargs) {\n    console.log('DEFAULT');\n  })\n  .command('build', 'build command', function(yargs) {\n    console.log('BUILD');\n  })\n  .args;\n```\n\nOutput:\n```\n$ ./index.js build\nBUILD\n\n$ ./index.js foo\nDEFAULT\n\n$ ./index.js\nDEFAULT\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxtgr%2Fyargs-default-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxtgr%2Fyargs-default-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxtgr%2Fyargs-default-command/lists"}