INNER CODE UNIT · JavaScript

cleanup

danburzo/percollate · index.js:173

async function cleanup(url, options) {
	if (!url) {
		return null;
	}
	try {
		err.write(`Fetching: ${url}`);

		const { buffer, contentType } = await fetchContent(
			url === '-' ? process.stdin : url,
			options.fetch || {}
		);

		err.write(' ✓\n');

		const final_url =
			options.preferred_url !== undefined
				? options.preferred_url
				: url === '-'

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…