@itsfuad/link-metadata
v1.0.2
Published
Parses metadata like Title, Description and social media image
Downloads
4
Maintainers
Readme
Metadata parser
Parses metadata from link for social media preview.
Use:
import { getLinkMetadata } from 'link-metadata';
const message = 'Visit page: https://facebook.com/artist.brother';
const response = getLinkMetadata(message);
/*
Output:
{
success: true,
data: {
title,
description,
image,
url,
},
};
*/