{"id":16070738,"url":"https://github.com/cjpatoilo/rasper","last_synced_at":"2025-03-17T17:30:26.868Z","repository":{"id":65411561,"uuid":"119503100","full_name":"cjpatoilo/rasper","owner":"cjpatoilo","description":"Node.js parse argument options make ease.","archived":false,"fork":false,"pushed_at":"2023-02-27T01:28:38.000Z","size":794,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T01:49:14.146Z","etag":null,"topics":["arguments","argv","bin","cli","cmd","command","option","parser","utility"],"latest_commit_sha":null,"homepage":"https://cjpatoilo.com/rasper","language":"JavaScript","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/cjpatoilo.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":".github/contributing.md","funding":".github/funding.yml","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},"funding":{"open_collective":"cjpatoilo","patreon":"cjpatoilo"}},"created_at":"2018-01-30T08:05:29.000Z","updated_at":"2023-08-25T12:14:53.000Z","dependencies_parsed_at":"2024-06-18T22:58:43.390Z","dependency_job_id":"42692339-4267-4ba1-9309-9d45a6fdfb16","html_url":"https://github.com/cjpatoilo/rasper","commit_stats":{"total_commits":55,"total_committers":3,"mean_commits":"18.333333333333332","dds":0.07272727272727275,"last_synced_commit":"8fdb781659ecf20eb58d47d36c374207b454ca2e"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjpatoilo%2Frasper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjpatoilo%2Frasper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjpatoilo%2Frasper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjpatoilo%2Frasper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjpatoilo","download_url":"https://codeload.github.com/cjpatoilo/rasper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871888,"owners_count":20361379,"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":["arguments","argv","bin","cli","cmd","command","option","parser","utility"],"created_at":"2024-10-09T07:06:53.621Z","updated_at":"2025-03-17T17:30:26.494Z","avatar_url":"https://github.com/cjpatoilo.png","language":"JavaScript","funding_links":["https://opencollective.com/cjpatoilo","https://patreon.com/cjpatoilo"],"categories":["Javascript"],"sub_categories":["Node.js"],"readme":"\u003ca href=\"https://github.com/cjpatoilo/rasper\"\u003e\u003cimg width=\"100%\" src=\"https://cjpatoilo.com/rasper/artwork.png\" alt=\"Rasper - Node.js parse argument options make ease.\"\u003e\u003c/a\u003e\n\n\u003e Node.js parse argument options make ease.\n\n[![Travis Status](https://travis-ci.org/cjpatoilo/rasper.svg?branch=master)](https://travis-ci.org/cjpatoilo/rasper?branch=master)\n[![AppVeyor Status](https://ci.appveyor.com/api/projects/status/04dg3w2xexquij8k?svg=true)](https://ci.appveyor.com/project/cjpatoilo/rasper)\n[![Codacy Status](https://img.shields.io/codacy/grade/3fc1af6f76e044a2bb898f2c780fbfec/master.svg)](https://www.codacy.com/app/cjpatoilo/rasper/dashboard)\n[![Dependencies Status](https://david-dm.org/cjpatoilo/rasper.svg)](https://david-dm.org/cjpatoilo/rasper)\n[![Version Status](https://badge.fury.io/js/rasper.svg)](https://www.npmjs.com/package/rasper)\n[![Download Status](https://img.shields.io/npm/dt/rasper.svg)](https://www.npmjs.com/package/rasper)\n[![Gitter Chat](https://img.shields.io/badge/gitter-join_the_chat-4cc61e.svg)](https://gitter.im/cjpatoilo/rasper)\n\n## Why it's awesome\n\nRasper transforms command arguments into an easy-to-use formatted object. Flags will be converted into key-value. If there is define flag without value the result will be assumed to be true. Boolean-looking arguments always will be returned as booleans. Numeric-looking arguments always will be returned as numbers. `_` contains all arguments that didn't have an flag associated.\n\n## Getting Started\n\n**Install with npm**\n\n```\n$ npm install rasper\n```\n\n**Install with Yarn**\n\n```\n$ yarn add rasper\n```\n\n**Run with npx (without installing)**\n\n```\n$ npx rasper\n```\n\n## Usage\n\n```\n// cli.js\nconst argv = require('rasper')\nconsole.dir(argv)\n\n// console\n$ pwa-installer dist/**/*.html -f 3 -n -o 4 foo bar baz --manifest --config=pwa.config.js 2 4 -f=99\n{\n  _: [ 'dist/**/*.html', 'foo', 'bar', 'baz', 2, 4 ],\n  n: true,\n  o: 4,\n  manifest: true,\n  config: 'pwa.config.js',\n  f: 99\n}\n```\n\nNote: If you don't provide an argument `process.argv.slice(1)` is defined by default.\n\n## Contributing\n\nWant to contribute? Follow these [recommendations](https://github.com/cjpatoilo/rasper/contribute).\n\n## License\n\nDesigned with ♥ by [CJ Patoilo](https://twitter.com/cjpatoilo). Licensed under the [MIT License](https://cjpatoilo.com/license).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjpatoilo%2Frasper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjpatoilo%2Frasper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjpatoilo%2Frasper/lists"}