PHP 8.2.30
Preview: configure Size: 521 B
/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/configure

#!/bin/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: 9 × Files: 15

Name Size Perms Modified Actions
.github DIR
- drwxr-xr-x 2024-03-03 22:42:04
Edit Download
bin DIR
- drwxr-xr-x 2024-03-03 22:42:04
Edit Download
- drwxr-xr-x 2024-03-03 22:42:04
Edit Download
html DIR
- drwxr-xr-x 2024-03-03 22:42:01
Edit Download
lib DIR
- drwxr-xr-x 2024-03-03 22:42:04
Edit Download
man DIR
- drwxr-xr-x 2024-03-03 22:38:09
Edit Download
- drwxr-xr-x 2024-03-03 22:42:04
Edit Download
- drwxr-xr-x 2024-03-03 22:42:04
Edit Download
scripts DIR
- drwxr-xr-x 2024-03-03 22:42:04
Edit Download
2.78 KB lrw-r--r-- 2021-09-28 11:28:52
Edit Download
539 B lrw-r--r-- 2021-09-28 11:28:49
Edit Download
1.24 KB lrw-r--r-- 2021-09-28 11:28:49
Edit Download
959 B lrw-r--r-- 2021-09-28 11:28:11
Edit Download
19.76 KB lrw-r--r-- 2021-09-28 11:28:49
Edit Download
84.01 KB lrw-r--r-- 2021-09-28 11:28:52
Edit Download
521 B lrwxr-xr-x 2021-09-28 11:28:49
Edit Download
4.37 KB lrw-r--r-- 2021-09-28 11:28:53
Edit Download
0 B ?????????? 2026-04-01 03:05:39
Edit Download
9.51 KB lrw-r--r-- 2021-09-28 11:28:49
Edit Download
156 B lrw-r--r-- 2021-09-28 11:28:09
Edit Download
5.48 KB lrw-r--r-- 2021-09-28 11:28:52
Edit Download
6.47 KB lrw-r--r-- 2021-09-28 11:28:54
Edit Download
4.61 KB lrw-r--r-- 2021-09-28 11:28:09
Edit Download
7.81 KB lrw-r--r-- 2021-09-28 11:28:54
Edit Download

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