sync$1 = (namespace, options = {}) => {
	if (!namespace) {
		throw new TypeError('Expected a namespace');
	}

	const filePath = findUp.sync('package.json', options.cwd ? {cwd: options.cwd} : {});

	if (!filePath) {
		return addFilePath(Object.assign({}, options.defaults), filePath);
	}

	const package_ = loadJsonFile.sync(filePath);

	if (options.skipOnFalse && package_[namespace] === false) {
		const newOptions = Object.assign({}, options, {cwd: findNextCwd(filePath)});
		return sync$1(namespace, newOptions);
	}

	return addFilePath(Object.assign({}, options.defaults, package_[namespace]), filePath);
}
Store option value

@param {string} key
@param {Object} value
@api private