{"id":15811919,"url":"https://github.com/mraerino/hacknow","last_synced_at":"2026-05-03T23:36:20.898Z","repository":{"id":57260158,"uuid":"102303257","full_name":"mraerino/hacknow","owner":"mraerino","description":"⛏ Utility for automation of project directories and switching workspaces","archived":false,"fork":false,"pushed_at":"2017-09-25T20:02:26.000Z","size":3,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-03T16:19:28.369Z","etag":null,"topics":["cli","git","github","idempotent","utility","workspaces"],"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/mraerino.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}},"created_at":"2017-09-04T00:33:18.000Z","updated_at":"2019-03-17T11:19:59.000Z","dependencies_parsed_at":"2022-08-25T01:31:48.890Z","dependency_job_id":null,"html_url":"https://github.com/mraerino/hacknow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mraerino/hacknow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mraerino%2Fhacknow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mraerino%2Fhacknow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mraerino%2Fhacknow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mraerino%2Fhacknow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mraerino","download_url":"https://codeload.github.com/mraerino/hacknow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mraerino%2Fhacknow/sbom","scorecard":{"id":663445,"data":{"date":"2025-08-11","repo":{"name":"github.com/mraerino/hacknow","commit":"3c936309afea088a33ca0b49d4d7caf750e813b0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.2,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/1 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":"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":"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":"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":"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":"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":"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":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-29xr-v42j-r956"],"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-21T17:00:18.837Z","repository_id":57260158,"created_at":"2025-08-21T17:00:18.837Z","updated_at":"2025-08-21T17:00:18.837Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32589262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","git","github","idempotent","utility","workspaces"],"created_at":"2024-10-05T04:01:16.804Z","updated_at":"2026-05-03T23:36:20.883Z","avatar_url":"https://github.com/mraerino.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HackNow\n\nUtility for automation of project directories and switching workspaces based on the GitHub directory structure - `User/Project`\n\n## Functionality\n\n- Directory structure: `\u003cprojects-dir\u003e/\u003cuser\u003e/\u003crepo\u003e`\n- Checks if a directory for the specified repo exists\n- No: Clones github repo into new directory\n- Yes: Does `git fetch --all` for this repo\n- Then changes into the project directory\n\n## Getting started\n\nAvailable on npm:\n\n`npm i -g hacknow`\n\n### Shell function\n\nIf you want your shell to switch into the project directory, you need to create a small function inside your shell config (`.bashrc`, `.zshrc` or similar)\n\n```sh\nhn() {\n  PROJECTPATH=$(hacknow \"$@\")\n  RETVAL=$?\n  cd $PROJECTPATH\n  return $RETVAL\n}\n```\n\nChoose a different alias if `hn` doesn't work for you.\n\n*Please note: On failure hacknow will echo just `.` to stdout, so it should be safe to call `cd` on it in every situation.*\n\n## Usage\n\n```sh\nhacknow \u003cuser\u003e/\u003crepo\u003e # Plain (without dir change)\nhn \u003cuser\u003e/\u003crepo\u003e # Needs a shell function (see above)\ncd $(hacknow \u003cuser\u003e/\u003crepo\u003e) # Alternative if the shell function does not work for you\n```\n\n### Options\n\n```\n-d|--project-dir \u003cdir\u003e    Choose base directory for your projects (default: $HOME)\n--ssh                     Use ssh protocol for git remote\n```\n\n### Examples\n\n```sh\n$ hn mraerino/gitmoji\n$ hn mraerino/hacknow -d ~/src\n$ hn festify/app --ssh\n```\n\n## Ideas / Roadmap\n\n- Bash completion\n- Execute scripts inside project directory (like `nvm`, `virtualenv`, `yarn install`, IDE launch...)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmraerino%2Fhacknow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmraerino%2Fhacknow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmraerino%2Fhacknow/lists"}