Support cross platform environment variables
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.9k
- Forks
- 51
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 1
Description
Add a cross-env feature which resolves environment variables in a standard way.
Example: I like to use env vars so that configuration information can be stored in package.json. I believe the following will fail on windows but works fine on mac:
"mkdirs": "dist docs/dist docs/models",
"scripts": {
"clean": "shx rm -rf $npm_package_mkdirs && shx mkdir $npm_package_mkdirs",
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the package.json example from issue #127 on macOS and Windows, focusing on how the npm_package_mkdirs environment variable is expanded in the shx command. Review the existing command entry points and cross-platform handling before deciding the expected behavior. Done means the example resolves consistently on both platforms and has coverage for the supported environment-variable syntax.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js, shell
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100