@sleiv/react-native-opengraph-parser
v0.1.0
Published
Simplifies opengraph metadata extraction in React Native
Downloads
751
Maintainers
Readme
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