{"id":13583772,"url":"https://github.com/sodiumjoe/lobar","last_synced_at":"2025-10-04T08:10:03.174Z","repository":{"id":142265491,"uuid":"56137761","full_name":"sodiumjoe/lobar","owner":"sodiumjoe","description":"A thin shell wrapper for lodash.chain().","archived":false,"fork":false,"pushed_at":"2019-01-09T21:48:22.000Z","size":762,"stargazers_count":28,"open_issues_count":8,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-28T02:43:25.953Z","etag":null,"topics":["cli","interactive","javascript","lodash","nodejs","shell"],"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/sodiumjoe.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}},"created_at":"2016-04-13T09:14:23.000Z","updated_at":"2023-12-05T06:21:55.000Z","dependencies_parsed_at":"2024-01-24T13:06:57.832Z","dependency_job_id":null,"html_url":"https://github.com/sodiumjoe/lobar","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/sodiumjoe/lobar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sodiumjoe%2Flobar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sodiumjoe%2Flobar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sodiumjoe%2Flobar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sodiumjoe%2Flobar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sodiumjoe","download_url":"https://codeload.github.com/sodiumjoe/lobar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sodiumjoe%2Flobar/sbom","scorecard":{"id":835758,"data":{"date":"2025-08-11","repo":{"name":"github.com/sodiumjoe/lobar","commit":"0d36e669cc349b9e266c8880c4137f9580a38595"},"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":"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":"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"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"}},{"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":"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":"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"}}]},"last_synced_at":"2025-08-23T19:00:04.588Z","repository_id":142265491,"created_at":"2025-08-23T19:00:04.588Z","updated_at":"2025-08-23T19:00:04.588Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278283509,"owners_count":25961311,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"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":["cli","interactive","javascript","lodash","nodejs","shell"],"created_at":"2024-08-01T15:03:46.697Z","updated_at":"2025-10-04T08:10:03.124Z","avatar_url":"https://github.com/sodiumjoe.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# lobar\n\nA thin shell wrapper for [lodash.chain()](https://lodash.com/).\n\n## install\n\n```shell\n\u003e npm install -g lobar\n```\n\n## usage\n\n```shell\n\u003e lbr -h\n\nUsage: lbr \u003cJSON\u003e \u003cmethod\u003e \u003carg\u003e [method arg, ...] [options]\n\nOptions:\n  -d, --data         \u003crequired\u003e input json  [string]\n  -f, --filename     \u003crequired\u003e input json file  [string]\n  -v, --verbose      verbosity level  [count]\n  -p, --prettyPrint  pretty print output  [boolean]\n  -i, --interactive  interactive mode  [boolean]\n  -h, --help         Show help  [boolean]\n  -V, --version      Show version number  [boolean]\n\nExamples:\n  lbr -d '[\"foo\"]' map upperCase       [\"FOO\"]\n  echo '{\"foo\": \"bar\"}' | lbr get foo  \"bar\"\n  echo '{\"foo\": \"bar\"}' | lbr .foo     \"bar\"\n```\n\n### pipe\n\n```shell\n$ echo '[{\"foo\":\"bar\"}, {\"foo\":\"baz\"}]' | lbr map foo\n\u003e [\"bar\",\"baz\"]\n```\n\nYou also have access to lodash methods inside of the method calls:\n\n```shell\n$ echo '[{\"foo\":\"bar\"}, {\"foo\": 3}]' | lbr filter 'x =\u003e isString(x.foo)'\n\u003e [{\"foo\":\"bar\"}]\n```\n\n### shorthands\n\nA leading `.` on an argument is shorthand for `get`:\n\n```shell\n$ echo '{\"foo\": {\"bar\": \"baz\"}}' | lbr .foo.bar\n\u003e \"baz\"\n```\n\nis equivalent to:\n\n```shell\n$ echo '{\"foo\": {\"bar\": \"baz\"}}' | lbr get foo.bar\n\u003e \"baz\"\n```\n\n### interactive mode\n\n```shell\n$ curl https://registry.npmjs.com/lobar | lbr -i\n```\n\n![interactive mode gif](https://raw.githubusercontent.com/sodiumjoe/lobar/master/lobar.gif)\n\n#### vi keybindings\n\nInteractive mode has basic vi keybindings. It starts in `insert` mode.\n\n##### autocompletion\n\nIn insert mode, lobar will try to infer methods or argument from method/arg\nposition and evaluated JSON at the current cursor position. `\u003cTab\u003e`/`\u003cS-Tab\u003e` or\n`\u003cC-n\u003e`/`\u003cC-p\u003e` to navigate the completion list.\n\n##### normal mode\n\nHitting `esc` will drop you into normal mode, where you can move horizontally\nwith `h`, `l`, `b`, `w`, `e`, `t`, `f`, `T`, `F`, `0`, and `$`. You can also use\n`c` and `d` with those movements in addition to `i` and `a` with a character or\none of `{}[]{}'\"`. Vertical movement ('j', 'k', `\u003cC-d\u003e`, `\u003cC-u\u003e`), will scroll the\njson output.\n\n`u` to undo and `\u003cC-r\u003e` to redo.\n\n`y` will copy your current prompt input to your clipboard.\n\n`\u003cC-c\u003e` to exit or `enter` to exit and print the currently evaluated json to\n`stdout`.\n\n### caveats\n\nIf you want to use a string argument for a method that collides with a lodash\nmethod name, you'll have to quote it twice:\n\n```shell\necho '[{\"isString\": true}]' | lbr filter \"'isString'\"\n[{\"isString\":true}]\n```\n\nThis is because `lbr` tries to `eval` the argument with lodash as the context.\n\n```shell\necho '[{\"isString\": true}]' | lbr filter isString\n[]\n```\n\n### environment variables\n\nYou can set options using environment variables:\n\n```shell\n$ LOBAR_PRETTY_PRINT=true lbr -d '{\"foo\": \"bar\"}' .foo\n\u003e \"bar\"\n```\n\n## why?\n\nI really like [jq](https://stedolan.github.io/jq/), but I have to look up the\nsyntax all the time. As a javascript developer, I already know lodash, and it's\ngenerally enough for what I want to do at the command line.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsodiumjoe%2Flobar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsodiumjoe%2Flobar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsodiumjoe%2Flobar/lists"}