MINI MINI MANI MO

Path : /opt/nvm/versions/node/v15.14.0/lib/node_modules/npm/lib/utils/config/
File Upload :
Current File : //opt/nvm/versions/node/v15.14.0/lib/node_modules/npm/lib/utils/config/describe-all.js

const definitions = require('./definitions.js')
const describeAll = () => {
  // sort not-deprecated ones to the top
  /* istanbul ignore next - typically already sorted in the definitions file,
   * but this is here so that our help doc will stay consistent if we decide
   * to move them around. */
  const sort = ([keya, {deprecated: depa}], [keyb, {deprecated: depb}]) => {
    return depa && !depb ? 1
      : !depa && depb ? -1
      : keya.localeCompare(keyb)
  }
  return Object.entries(definitions).sort(sort)
    .map(([key, def]) => def.describe())
    .join('\n\n')
}
module.exports = describeAll

OHA YOOOO