/node-link-preview

Library to return title, description and highlighted image of a site to generate a link preview.

Primary LanguageJavaScript

LinkPreview

Library to return title, description and highlighted image of a site to generate a link preview.
const LinkPreview = require('link-preview')

LinkPreview.search('www.google.com', (data) => {
  console.log(data); // { img: '', title: '', description: '', link: ''}
}, () => {
  console.log('Error');
});

Installation

npm install node-link-preview