{"id":13602811,"url":"https://github.com/liudonghua123/cross-shell","last_synced_at":"2026-02-08T07:03:20.206Z","repository":{"id":244252967,"uuid":"814526738","full_name":"liudonghua123/cross-shell","owner":"liudonghua123","description":"A simple cross platform shell for windows which supports set envs, wildcard expansions ...","archived":false,"fork":false,"pushed_at":"2024-06-20T02:54:26.000Z","size":78,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-09T01:58:04.507Z","etag":null,"topics":["bash","cross-env","cross-platform","shell","wildcard-expansion"],"latest_commit_sha":null,"homepage":"https://liudonghua123.github.io/cross-shell/","language":"TypeScript","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/liudonghua123.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-13T07:24:03.000Z","updated_at":"2024-06-30T23:47:41.000Z","dependencies_parsed_at":"2024-11-07T06:32:15.547Z","dependency_job_id":"4351ffc3-e77a-47e1-a0c6-c123db2f578b","html_url":"https://github.com/liudonghua123/cross-shell","commit_stats":null,"previous_names":["liudonghua123/cross-shell"],"tags_count":0,"template":false,"template_full_name":"liudonghua123/ts-esm-template","purl":"pkg:github/liudonghua123/cross-shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liudonghua123%2Fcross-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liudonghua123%2Fcross-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liudonghua123%2Fcross-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liudonghua123%2Fcross-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liudonghua123","download_url":"https://codeload.github.com/liudonghua123/cross-shell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liudonghua123%2Fcross-shell/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269351910,"owners_count":24402678,"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-08-08T02:00:09.200Z","response_time":72,"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":["bash","cross-env","cross-platform","shell","wildcard-expansion"],"created_at":"2024-08-01T18:01:38.696Z","updated_at":"2026-02-08T07:03:15.174Z","avatar_url":"https://github.com/liudonghua123.png","language":"TypeScript","funding_links":[],"categories":["bash"],"sub_categories":[],"readme":"# cross-shell\n\n[![Node.js CI](https://github.com/liudonghua123/ts-esm-template/actions/workflows/node.js.yml/badge.svg)](https://github.com/liudonghua123/ts-esm-template/actions/workflows/node.js.yml)\n\nThis is a simple tool that behaves like [`cross-env`](https://www.npmjs.com/package/cross-env), supporting configuration environments and other frequently used features like [`wildcards expansion`](https://en.wikipedia.org/wiki/Wildcard_character#Filename_patterns), which is not available on Windows.\n\n## Motivation\n\nI tried to add a test script like `node --test ./test/**/*.js`, but it did not work in either [CMD](https://en.wikipedia.org/wiki/Cmd.exe) or [PowerShell](https://docs.microsoft.com/en-us/powershell/) on Windows. I also searched [npmjs.com](https://www.npmjs.com/) but failed to find an existing package that supports `wildcards expansion`. So, I wrote this tool for myself and others who need it.\n\n## How to Use\n\n1. Install `cross-shell` via your package manager, e.g., `npm i --save-dev cross-shell`, `yarn add -D cross-shell`, or `pnpm i -D cross-shell`.\n2. Prepend `cross-shell` before the command you want to execute.\n\n## Todos\n\n- [ ] Make the execution output colored, need to support [TTY](https://en.wikipedia.org/wiki/Terminal_emulator).\n- [ ] Support `\u0026\u0026` and `||` operations.\n- [ ] Support `\u0026` background running.\n- [ ] Add more tests.\n\n## License\n\n[MIT License](https://opensource.org/licenses/MIT)\n\n© 2024 liudonghua\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliudonghua123%2Fcross-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliudonghua123%2Fcross-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliudonghua123%2Fcross-shell/lists"}