@itsfuad/link-metadata
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i @itsfuad/link-metadata

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

77 kB

Total Files

8

Last publish

Collaborators

  • itsfuad