{"id":21319730,"url":"https://github.com/blurfx/node-option","last_synced_at":"2026-04-11T04:33:13.959Z","repository":{"id":143898003,"uuid":"168952953","full_name":"blurfx/node-option","owner":"blurfx","description":"node.js based option selector for interactive shell application","archived":false,"fork":false,"pushed_at":"2019-02-05T10:16:04.000Z","size":1478,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-17T06:41:24.546Z","etag":null,"topics":["nodejs","nodejs-modules","shell","shell-prompt","terminal","terminal-app"],"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/blurfx.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":"2019-02-03T14:18:25.000Z","updated_at":"2022-06-10T14:56:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"bb61bf44-79e5-445d-866a-4bcfa47afa47","html_url":"https://github.com/blurfx/node-option","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/blurfx/node-option","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurfx%2Fnode-option","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurfx%2Fnode-option/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurfx%2Fnode-option/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurfx%2Fnode-option/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blurfx","download_url":"https://codeload.github.com/blurfx/node-option/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurfx%2Fnode-option/sbom","scorecard":{"id":245102,"data":{"date":"2025-08-11","repo":{"name":"github.com/blurfx/node-option","commit":"bc712d9f4d1fa31c0070d750a30d8012b0e056f6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T07:26:26.726Z","repository_id":143898003,"created_at":"2025-08-17T07:26:26.726Z","updated_at":"2025-08-17T07:26:26.726Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31669116,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["nodejs","nodejs-modules","shell","shell-prompt","terminal","terminal-app"],"created_at":"2024-11-21T19:44:00.362Z","updated_at":"2026-04-11T04:33:13.907Z","avatar_url":"https://github.com/blurfx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-option\n\nAn item selection module for interactive shell applications.\n\n![](https://raw.githubusercontent.com/blurfx/node-option/master/example.gif)\n\n\n## Installation\n\n`npm install node-option`\n\n## API\n\n### add(text, value)\n\nAdds the options that you want to select.\n\nIf no value is given, the given text will be a value.\n\n### render()\n\nDisplays a options on the shell and allows the user to select.\n\n\n## Usage\n\n#### Javascript\n\n```javascript\nconst Selector = require('node-option');\n\nconst selector = new Selector({\n  markWrapperColor: 'blue',\n  checkedMarkColor: 'white',\n  textColor: 'yellow',\n  multiselect: true,\n});\n\nconst result = selector\n                .add('One')\n                .add('Two')\n                .add('Three')\n                .add('Four')\n                .render();\n\nresult.then((value) =\u003e {\n  console.log(value);\n}, (error) =\u003e {\n  console.log(error);\n});\n```\n\n#### Typescript\n\n```typescript\nimport Selector from 'node-option';\n\nconst selector = new Selector({\n    markWrapperColor: 'blue',\n    checkedMarkColor: 'white',\n    textColor: 'yellow',\n    multiselect: true,\n});\n\nconst result = selector\n    .add('One')\n    .add('Two')\n    .add('Three')\n    .add('Four')\n    .render();\n\nresult.then((value) =\u003e {\n    console.log(value);\n}, (error) =\u003e {\n    console.error(error);\n})\n```\n\n## Configuration\n\n`node-option` uses `chalk` to styling. You can check available colors [here](https://github.com/chalk/chalk#colors).\n\n```javascript\n{\n    cursor: '\u003e',                  // string to item cursor\n    checkedMark: '✓',             // string to mark of selected item\n    uncheckedMark: ' ',           // string to mark of unselected item\n    markWrapperLeft: '[',         // string to the left of the checked/unchecked mark\n    markWrapperRight: ']',        // string to the right of the checked/unchecked mark\n    cursorColor: 'cyan',          // color of cursor\n    checkedMarkColor: 'green',    // color of checked mark\n    uncheckedMarkColor: 'black',  // color of cunhecked mark\n    markWrapperColor: 'white',    // color of markWrapperLeft and markWrapperRight\n    textColor: 'yellow',          // color of item text\n    multiselect: true,            // whether to allow select multiple items\n    highlight: true,              // whether to highlight item that cursor points\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblurfx%2Fnode-option","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblurfx%2Fnode-option","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblurfx%2Fnode-option/lists"}