Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

open-graph-scraper

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

open-graph-scraper - npm Package Versions

1
11

6.2.1

Diff

Changelog

Source

6.2.1

  • Send back more details when there is a server error
jshemas
published 6.2.0 •

Changelog

Source

6.2.0

  • Modified the url property in OpenGraphScraperOptions to be an optional property since you don't need this when using just html
  • Type can optional in ImageObject since type is not set it it's invalid
  • Take all of the customMetaTags out of base of ogObject and store them into ogObject.customMetaTags
  • The internal meta properties can be string arrays
  • Updating Dependencies
jshemas
published 6.1.0 •

Changelog

Source

6.1.0

  • Setting the origin header to the request url since fetch runs in cors mode by default.
  • Import undici for fetch so all versions of node18 are running the same version of fetch. Now ogs supports all versions of node18!
  • Updating Dependencies
jshemas
published 6.0.1 •

Changelog

Source

6.0.1

  • OpenGraphScraperOptions.fetchOptions should be of type RequestInit instead of Request.
  • Updating Dependencies
jshemas
published 6.0.0 •

Changelog

Source

6.0.0 (Has breaking changes!)

  • Replace GOT with fetch!
  • Only supporting node18 or higher going forward
  • Updated how options work. Fetch and OGS options no longer being mixed together, users can now set fetch options using options.fetchOptions
  • Remove any ogImages/ogVideos/twitterImages/twitterPlayers/musicSongs results that have no url
  • The downloadLimit option has been removed in favor of just using timeouts.
  • Limit ogImages/ogVideos/twitterImages/twitterPlayers/musicSongs to 10 items
  • Adding html to the SuccessResult of OGS
  • Adding options.timeout to set the fetch request timeout. (default is 10 seconds)
  • Remove null values from ogImages/ogVideos/twitterImages/twitterPlayers/musicSongs
  • Removing options.allMedia, you can just grab the first value of the array for the pervious behavior
  • Removing options.ogImageFallback, you can set options.onlyGetOpenGraphInfo to true for the pervious behavior
  • ogImages/ogVideos/twitterImages/twitterPlayers/musicSongs will always be an array now, you can just grab the first value of the array for the pervious behavior
  • Updating Dependencies
jshemas
published 5.2.3 •

Changelog

Source

5.2.3

  • Add in declaration files for typescript users.
jshemas
published 5.2.2 •

Changelog

Source

5.2.2

  • Specify true/false to distinguish SuccessResult and ErrorResult by error field.
jshemas
published 5.2.1 •

Changelog

Source

5.2.1

  • Adding the importsNotUsedAsValues flag and fixing type import issues
jshemas
published 5.2.0 •

Changelog

Source

5.2.0

  • Remove the charset lib and just use chardet for finding the html encoding
  • Remove peekSize option since that was used by charset
  • Updating the charset fallback to be more reliable
  • Adding support for article:published_date and article:modified_date meta tags
  • Updating Dependencies
jshemas
published 5.1.1 •

Changelog

Source

5.1.1

  • Fix issue where using import would cause typescript errors
  • Updating the urlValidatorSettings defaults to match validatorjs
  • Updating Dependencies
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc