Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-native-link-preview
Advanced tools
Allows to extract information from an URL or parse a text and retrieve information from the first available link.
Allows to extract information from an URL or parse a text and retrieve information from the first available link.
$ npm install -S react-native-link-preview
You have to pass an object argument with either a valid URL (no validation on library side yet) or a text that can be parsed
import LinkPreview from 'react-native-react-native-link-preview';
LinkPreview.getPreview('https://www.youtube.com/watch?v=MejbOFk7H6c')
.then(data => console.warn(data))
.catch(err => console.warn(err))
LinkPreview.getPreview('This is a text supposed to be parsed and the first link displayed https://www.youtube.com/watch?v=MejbOFk7H6c')
.then(data => console.warn(data))
.catch(err => console.warn(err))
Returns
{
description: "Buy the video on iTunes: https://itunes.apple.com/us/album/needing-getting-bundle-ep/id508124847 See more about the guitars at: http://www.gretschguitars.com...",
images: ["https://i.ytimg.com/vi/MejbOFk7H6c/maxresdefault.jpg"],
mediaType: "video",
title: "OK Go - Needing/Getting - Official Video - YouTube",
url: "https://www.youtube.com/watch?v=MejbOFk7H6c",
videos: undefined
}
This library depends on:
Check them out, both pretty cool
MIT license
FAQs
# I'm kinda done maintaining this project, looking for somebody to take over the repo and the npm package, message me if you are interested: ospfranco@protonmail.com # MY ADVICE: CORS is there for a reason, it is a bad idea to directly fetch the response
The npm package react-native-link-preview receives a total of 218 weekly downloads. As such, react-native-link-preview popularity was classified as not popular.
We found that react-native-link-preview demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.