Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 425 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 425 Bytes

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