{"id":18497939,"url":"https://github.com/pouyakary/clavinet","last_synced_at":"2025-05-14T05:18:59.989Z","repository":{"id":57199680,"uuid":"110555878","full_name":"pouyakary/clavinet","owner":"pouyakary","description":"An independent \"Command Line Argument\" language based on the tokens recived from process.argv","archived":false,"fork":false,"pushed_at":"2017-11-13T15:05:47.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-17T09:53:29.402Z","etag":null,"topics":["argv","command-line-parser","kary-comments","karyfoundation","pegjs"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pouyakary.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}},"created_at":"2017-11-13T14:05:57.000Z","updated_at":"2017-12-13T13:18:14.000Z","dependencies_parsed_at":"2022-09-16T15:01:56.801Z","dependency_job_id":null,"html_url":"https://github.com/pouyakary/clavinet","commit_stats":null,"previous_names":["pmkary/clavinet"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pouyakary%2Fclavinet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pouyakary%2Fclavinet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pouyakary%2Fclavinet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pouyakary%2Fclavinet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pouyakary","download_url":"https://codeload.github.com/pouyakary/clavinet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239217108,"owners_count":19601593,"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":["argv","command-line-parser","kary-comments","karyfoundation","pegjs"],"created_at":"2024-11-06T13:36:42.635Z","updated_at":"2025-02-17T00:42:18.595Z","avatar_url":"https://github.com/pouyakary.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Clavinet\nClavinet is a command line argument parser with it's own language rules. It joins the given `process.argv` into a string and then parses it with it's own language grammar.\n\n## Language\nClavinet has these concepts:\n\n- __Commands__ \u0026mdash; Commands start with double dashes as `--some-command-name` and they can have a value after them separated by spaces like: `--say hello`, or `--add [2, 3, 5]`\n- __Values__ \u0026mdash; Values are __Literals__ or __Arrays__\n- __Array__ \u0026mdash; Array is made of a sequence of __Values__ separated by `,` and inside of square bracket. For example: `[1, 2, 4, hello, [1, 3]]`\n- __Literals__ \u0026mdash; Literals are numbers and words in this format: `[a-zA-Z0-9_\\./][a-zA-Z0-9_\\.\\-/]*`\n\n## Building\nYou need to run `npm install` to install all the dependencies and you must have _TypeScript_ installed on your system. After that you can build the package using\n\n```\nnpm run build\n```\n\n## How to use it?\n\nFirst install it via\n\n```sh\nnpm install --save clavinet\n```\n\nThen use it as:\n\n```js\nconst clavinet = require('clavinet')\nconst args = clavinet.Parse( )\n```\n\n\n\u003cbr\u003e\u003cbr\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/2157285/28680500-c9ca905a-730b-11e7-99bf-2b249d97c17d.png\" width=\"260\"\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpouyakary%2Fclavinet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpouyakary%2Fclavinet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpouyakary%2Fclavinet/lists"}