MCPcopy
hub / github.com/vercel/hyper / ls

Function ls

bin/yarn-standalone.js:37810–37823  ·  view source on GitHub ↗
(manifest, reporter, saved)

Source from the content-addressed store, hash-verified

37808}
37809
37810function ls(manifest, reporter, saved) {
37811 const bins = manifest.bin ? Object.keys(manifest.bin) : [];
37812 const human = `${manifest.name}@${manifest.version}`;
37813 if (bins.length) {
37814 if (saved) {
37815 reporter.success(reporter.lang('packageInstalledWithBinaries', human));
37816 } else {
37817 reporter.info(reporter.lang('packageHasBinaries', human));
37818 }
37819 reporter.list(`bins-${manifest.name}`, bins);
37820 } else if (saved) {
37821 reporter.warn(reporter.lang('packageHasNoBinaries', human));
37822 }
37823}
37824
37825var _buildSubCommands = (0, (_buildSubCommands2 || _load_buildSubCommands()).default)('global', {
37826 add(config, reporter, flags, args) {

Callers 2

yarn-standalone.jsFile · 0.85
maybeOutputSaveTreeMethod · 0.85

Calls 7

_load_asyncToGeneratorFunction · 0.85
listFunction · 0.70
successMethod · 0.45
langMethod · 0.45
infoMethod · 0.45
listMethod · 0.45
warnMethod · 0.45

Tested by

no test coverage detected