INNER CODE UNIT · JavaScript

buildResult

sindresorhus/meow · source/index.js:92

const buildResult = ({pkg: packageJson, getPackage, ...options}, parserOptions) => {
	const argv = parseArguments(options.argv, parserOptions);
	let help = '';

	if (options.help) {
		help = trimNewlines((options.help || '').replace(/\t+\n*$/, ''));

		if (help.includes('\n')) {
			help = redent(help, options.helpIndent);
		}

		help = `\n${help}`;
	}

	if (options.description !== false) {
		let {description} = options;

		if (description) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…