react-native-link-preview
Advanced tools
Comparing version 1.3.4 to 1.3.5
{ | ||
"name": "react-native-link-preview", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# react-native-link-preview | ||
Allows you to extract information from a URL or parse text and retrieve information from the first available link. | ||
# THIS LIBRARY DOES NOT WORK ON CORS PROTECTED ENVIRONMENTS: CHROME, FIREFOX, SAFARI, ETC | ||
## NodeJS support | ||
Library should now work on node environments, thanks to @uriva and @itaibs, I will not rename the library because it may cause confusion for people who try to run in a CORS protected environment (ex. google chrome), since this does not happen for RN that was the original intention of the package. | ||
Pure js library that allows you to extract information from a URL or parse text and retrieve information from the first available link. | ||
## On the naming and runnable environments | ||
Library should work on node environments (thanks @uriva and @itaibs), library retains it's original name because it was originally created to work on react-native (and re-publishing on npm might break stuff), it is a generic js library so it should work wherever you can run JS, EXCEPT: | ||
Chrome, Firefox, Safari, etc DO NOT ALLOW YOU TO DO CROSS SITE REQUESTS therefore you cannot use this library or even manually request another domain from your web browser application (read more about CORS https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS). | ||
## Getting started | ||
@@ -13,2 +17,6 @@ | ||
or | ||
`$ yarn add react-native-link-preview` | ||
## Usage | ||
@@ -15,0 +23,0 @@ Library exposes just one method: getPreview, you have to pass a string (doesn't matter if it is just a URL or a piece of text that contains a URL), the library will take care of parsing it and returning the info of first valid URL info it finds. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
123
143915
7