{"id":15692550,"url":"https://github.com/kt3k/minimisted","last_synced_at":"2025-05-05T21:16:15.942Z","repository":{"id":10344588,"uuid":"65433491","full_name":"kt3k/minimisted","owner":"kt3k","description":"Handy wrapper of `minimist`","archived":false,"fork":false,"pushed_at":"2024-02-28T12:48:45.000Z","size":112,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-05T21:16:05.530Z","etag":null,"topics":["cli","commandline","minimist"],"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/kt3k.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-11T02:58:27.000Z","updated_at":"2024-06-23T11:35:11.000Z","dependencies_parsed_at":"2024-02-28T13:49:46.488Z","dependency_job_id":"e1144adc-ec9c-4052-b08f-f1eb81ec3031","html_url":"https://github.com/kt3k/minimisted","commit_stats":{"total_commits":44,"total_committers":4,"mean_commits":11.0,"dds":0.5227272727272727,"last_synced_commit":"c41c831ab8efdbebd2391ee28d9e3a8b5f0df778"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fminimisted","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fminimisted/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fminimisted/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kt3k%2Fminimisted/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kt3k","download_url":"https://codeload.github.com/kt3k/minimisted/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252577027,"owners_count":21770721,"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":["cli","commandline","minimist"],"created_at":"2024-10-03T18:35:13.543Z","updated_at":"2025-05-05T21:16:15.921Z","avatar_url":"https://github.com/kt3k.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# minimisted v2.0.1\n\n![CI](https://github.com/kt3k/minimisted/workflows/CI/badge.svg)\n[![codecov](https://codecov.io/gh/kt3k/minimisted/branch/master/graph/badge.svg)](https://codecov.io/gh/kt3k/minimisted)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\n\n\u003e A handy wrapper of `minimist`\n\n# Install\n\n    npm install minimisted\n\n# Usage\n\nYou can write your cli like the following:\n\n```js\n// Your cli's entry point\nconst main = (argv) =\u003e {\n}\n\nrequire('minimisted')(main)\n```\n\nwhere `argv` is the command line options parsed by `minimist` i.e. `minimist(process.argv.slice(2))`.\n\nUsing object destructuring syntax, you can write it like the following:\n\n```js\n/**\n * @param {boolean} help Shows help message if true\n * @param {boolean} version Shows the version if true\n * ...\n * @param {string[]} _ The parameters\n */\nconst main = ({ help, version, _ }) =\u003e {\n}\n\nrequire('minimisted')(main)\n```\n\n# API\n\n```js\nconst minimisted = require('minimisted')\n```\n\n## minimisted(main[, opts[, argv]])\n\n- @param {Function} main The main function\n- @param {Object} opts The option which is passed to minimist's 2rd arguments\n- @param {string} argv The command line arguments. Default is `process.argv.slice(2)`.\n\nThis calls `main` with command line options parsed by the minimist with the given options.\n\n# License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkt3k%2Fminimisted","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkt3k%2Fminimisted","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkt3k%2Fminimisted/lists"}