cross-shell
v0.1.4
Published
[![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)
Downloads
16
Maintainers
Readme
cross-shell
This is a simple tool that behaves like cross-env
, supporting configuration environments and other frequently used features like wildcards expansion
, which is not available on Windows.
Motivation
I tried to add a test script like node --test ./test/**/*.js
, but it did not work in either CMD or PowerShell on Windows. I also searched 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.
How to Use
- Install
cross-shell
via your package manager, e.g.,npm i --save-dev cross-shell
,yarn add -D cross-shell
, orpnpm i -D cross-shell
. - Prepend
cross-shell
before the command you want to execute.
Todos
- [ ] Make the execution output colored, need to support TTY.
- [ ] Support
&&
and||
operations. - [ ] Support
&
background running. - [ ] Add more tests.
License
© 2024 liudonghua