Skip to content

bokuhe/react-native-opengraph-parser

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published