laurengarcia / url-metadata

NPM module: Request a url and scrape the metadata from its HTML using Node.js or the browser.
https://www.npmjs.com/package/url-metadata
MIT License
166 stars 44 forks source link

Correctly handle bad responses #4

Closed bb-work closed 5 years ago

bb-work commented 6 years ago

Bad responses were neither resolving nor rejecting. This fix causes them to be handled correctly.

dantheuber commented 6 years ago

👍 please merge this

laurengarcia commented 5 years ago

Sorry for delay... published to npm version 2.1.8 https://www.npmjs.com/package/url-metadata