UNPKG

metatag-crawler

Version:

This is a simple node.js module for scraping meta information from web pages.

4 lines (3 loc) 114 B
module.exports = function(text) { return (text && text.trim && text.trim().replace(/\s+/g, ' ')) || ''; };