PHP 8.1.33
Preview: configure Size: 529 B
//lib/node_modules/npm/configure

#!/usr/bin/env bash

# set configurations that will be "sticky" on this system,
# surviving npm self-updates.

CONFIGS=()
i=0

# get the location of this file.
unset CDPATH
CONFFILE=$(cd $(dirname "$0"); pwd -P)/npmrc

while [ $# -gt 0 ]; do
  conf="$1"
  case $conf in
    --help)
      echo "./configure --param=value ..."
      exit 0
      ;;
    --*)
      CONFIGS[$i]="${conf:2}"
      ;;
    *)
      CONFIGS[$i]="$conf"
      ;;
  esac
  let i++
  shift
done

for c in "${CONFIGS[@]}"; do
  echo "$c" >> "$CONFFILE"
done

Directory Contents

Dirs: 7 × Files: 15

Name Size Perms Modified Actions
bin DIR
- drwxr-xr-x 2024-03-03 22:36:29
Edit Download
- drwxr-xr-x 2024-03-03 22:36:29
Edit Download
lib DIR
- drwxr-xr-x 2024-03-03 22:36:29
Edit Download
man DIR
- drwxr-xr-x 2024-03-05 23:20:28
Edit Download
- drwxr-xr-x 2024-03-03 22:36:29
Edit Download
scripts DIR
- drwxr-xr-x 2024-03-03 22:36:29
Edit Download
- drwxr-xr-x 2024-03-03 22:36:29
Edit Download
245 B lrw-r--r-- 2021-03-10 14:36:40
Edit Download
3.20 KB lrw-r--r-- 2021-03-10 14:36:35
Edit Download
368 B lrw-r--r-- 2021-03-10 14:36:35
Edit Download
0 B lrw-r--r-- 2021-03-10 14:36:40
Edit Download
262 B lrw-r--r-- 2021-03-10 14:36:35
Edit Download
26.44 KB lrw-r--r-- 2021-03-10 14:36:35
Edit Download
156.31 KB lrw-r--r-- 2021-03-10 14:36:35
Edit Download
529 B lrw-r--r-- 2021-03-10 14:36:35
Edit Download
9.29 KB lrw-r--r-- 2021-03-10 14:36:40
Edit Download
0 B ?????????? 2025-11-05 01:14:42
Edit Download
9.51 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
156 B lrw-r--r-- 2021-03-10 14:36:35
Edit Download
4.02 KB lrw-r--r-- 2021-03-10 14:36:35
Edit Download
7.84 KB lrw-r--r-- 2021-03-10 14:36:35
Edit Download
4.39 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).