shelljs / shelljs/shx

Support cross platform environment variables

Open
#127 18 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feat good first issue high priority
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.