1.2.7 • Published 1 year ago
link-preview-info v1.2.7
Link-preview-info
Very easy NPM package for getting info from a website by using GOT as http library and JSDOM for conversion of http result to DOM.
Installation
npm i link-preview-info
Usage
The function linkPreviewInfo is asynchronous, do not forget to await the result!
import linkPreviewInfo from 'link-preview-info';
const info = await linkPreviewInfo('https://something.com/');
console.log(info);
{
title: 'Title',
description: 'Description',
imgUrl: 'someurl.png'
}
Good to know
if the function finds no image url or the image url returns 404, value of imageUrl will be set to null.
1.2.7
1 year ago
1.2.5
2 years ago
1.2.4
2 years ago
1.2.3
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.9
2 years ago
1.1.8
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago