@sleiv/react-native-opengraph-parser
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

react-native-opengraph-parser

react-native-opengraph-parser is a package for React-Native applications that utilizes the Open Graph protocol to easily extract and parse metadata from web pages. This package is based on react-native-opengraph-kit and has been updated to support the latest version of React Native and TypeScript.

Installation

npm install @sleiv/react-native-opengraph-parser

or

yarn add @sleiv/react-native-opengraph-parser

Usage

import { OpenGraphParser } from '@sleiv/react-native-opengraph-parser';

// ...

OpenGraphParser.extractMeta('https://sleiv.net/')
  .then((metadata) => {
    console.log(metadata);
  })
  .catch((e) => {
    console.error(e);
  });

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i @sleiv/react-native-opengraph-parser

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

46.1 kB

Total Files

17

Last publish

Collaborators

  • sleiv