1.0.2 • Published 1 year ago

@itsfuad/link-metadata v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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,
    },
};
*/