PATH:
opt
/
bitninja-node-dojo
/
lib
/
node_modules
/
npm
/
lib
/
install
'use strict' const { EOL } = require('os') const computeMetadata = require('./deps.js').computeMetadata const mutateIntoLogicalTree = require('./mutate-into-logical-tree.js') var { getFundingInfo } = require('../utils/funding.js') exports.getPrintFundingReport = getPrintFundingReport exports.getPrintFundingReportJSON = getPrintFundingReportJSON function getFundingResult ({ fund, idealTree }) { if (fund) { const fundingInfoTree = mutateIntoLogicalTree.asReadInstalled( computeMetadata(idealTree) ) const fundResult = getFundingInfo(fundingInfoTree, { countOnly: true }) return fundResult } else { return {} } } function getPrintFundingReport ({ fund, idealTree }, opts) { const fundResult = getFundingResult({ fund, idealTree }) const { length } = fundResult || {} const { json } = opts || {} function padding (msg) { return json ? '' : (EOL + msg) } function packageQuantity (amount) { return `package${amount > 1 ? 's are' : ' is'}` } if (!length) return '' return padding('') + length + ' ' + packageQuantity(length) + ' looking for funding' + padding(' run `npm fund` for details\n') } function getPrintFundingReportJSON ({ fund, idealTree }) { return getPrintFundingReport({ fund, idealTree }, { json: true }) }
[+]
action
[-] validate-args.js
[edit]
[-] save.js
[edit]
[-] is-prod-dep.js
[edit]
[-] get-requested.js
[edit]
[-] actions.js
[edit]
[-] is-fs-access-available.js
[edit]
[-] copy-tree.js
[edit]
[-] writable.js
[edit]
[+]
..
[-] update-package-json.js
[edit]
[-] is-only-dev.js
[edit]
[-] is-only-optional.js
[edit]
[-] check-permissions.js
[edit]
[-] inflate-shrinkwrap.js
[edit]
[-] flatten-tree.js
[edit]
[-] is-extraneous.js
[edit]
[-] access-error.js
[edit]
[-] audit.js
[edit]
[-] exists.js
[edit]
[-] mutate-into-logical-tree.js
[edit]
[-] fund.js
[edit]
[-] module-staging-path.js
[edit]
[-] deps.js
[edit]
[-] validate-tree.js
[edit]
[-] and-finish-tracker.js
[edit]
[-] is-dev-dep.js
[edit]
[-] diff-trees.js
[edit]
[-] decompose-actions.js
[edit]
[-] node.js
[edit]
[-] realize-shrinkwrap-specifier.js
[edit]
[-] and-ignore-errors.js
[edit]
[-] inflate-bundled.js
[edit]
[-] read-shrinkwrap.js
[edit]
[-] and-add-parent-to-errors.js
[edit]
[-] has-modern-meta.js
[edit]
[-] report-optional-failure.js
[edit]
[-] is-opt-dep.js
[edit]