PHP 8.2.30
Preview: lifecycle.js Size: 851 B
//lib/node_modules/npm/lib/config/lifecycle.js

'use strict'

const npm = require('../npm.js')
const log = require('npmlog')

module.exports = lifecycleOpts

let opts

function lifecycleOpts (moreOpts) {
  if (!opts) {
    opts = {
      config: npm.config.snapshot,
      dir: npm.dir,
      failOk: false,
      force: npm.config.get('force'),
      group: npm.config.get('group'),
      ignorePrepublish: npm.config.get('ignore-prepublish'),
      ignoreScripts: npm.config.get('ignore-scripts'),
      log: log,
      nodeOptions: npm.config.get('node-options'),
      production: npm.config.get('production'),
      scriptShell: npm.config.get('script-shell'),
      scriptsPrependNodePath: npm.config.get('scripts-prepend-node-path'),
      unsafePerm: npm.config.get('unsafe-perm'),
      user: npm.config.get('user')
    }
  }

  return moreOpts ? Object.assign({}, opts, moreOpts) : opts
}

Directory Contents

Dirs: 0 × Files: 14

Name Size Perms Modified Actions
716 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
423 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
2.17 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
10.90 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
11.45 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
2.31 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
687 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
2.16 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
851 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
682 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
1.30 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
471 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
1.24 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
758 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download

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