
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@notamit/ogpparser
Advanced tools
A simple package to extract Open Graph Protocol (ogp.me) metadata from a given URL that can be used to generate link previews.
A npm package that extracts Open Graph Protocol (ogp.me) metadata from a given URL that can be used to generate link previews.
To install @notamit/ogpparser
# with npm:
npm install @notamit/ogpparser --save
# with yarn:
yarn add @notamit/ogpparser
# with pnpm:
pnpm add @notamit/ogpparser
# with bun:
bun add @notamit/ogpparser
@notamit/ogpparser
exports parse
async function. It requires 1 argument, the URL of the page you want to extract metadata from. It returns a promise that resolves to an object containing the metadata.
Inside your .js/.ts
file, import the parse
function and use it.
import parse from "@notamit/ogpparser";
async function test() {
const metadata=await parse('https://www.youtube.com/watch?v=znWS3zkdrq4');
return metadata;
);
test().then(res =>{
console.log(res);
}).catch(err =>{
//handling errors
console.error(err);
})
}
{
title: 'Chai aur code Live ☕️ - YouTube',
og: {
'og:site_name': 'YouTube',
'og:url': 'https://www.youtube.com/watch?v=znWS3zkdrq4',
'og:title': 'Chai aur code Live ☕️',
'og:image': 'https://i.ytimg.com/vi/znWS3zkdrq4/maxresdefault.jpg?sqp=-oaymwEmCIAKENAF8quKqQMa8AEB-AH-CYAC0AWKAgwIABABGGUgUShHMA8=&rs=AOn4CLBXY4-LhSGoyrs_IWkZeZzimQIANA',
'og:image:width': '1280',
'og:image:height': '720',
'og:description': 'https://courses.chaicode.com/learn/Interview-Preparation-With-JavascriptCoupon: YOUTUBE200',
'og:type': 'video.other',
'og:video:url': 'https://www.youtube.com/embed/znWS3zkdrq4',
'og:video:secure_url': 'https://www.youtube.com/embed/znWS3zkdrq4',
'og:video:type': 'text/html',
'og:video:width': '1280',
'og:video:height': '720'
},
twitter: {
'twitter:card': 'player',
'twitter:site': '@youtube',
'twitter:url': 'https://www.youtube.com/watch?v=znWS3zkdrq4',
'twitter:title': 'Chai aur code Live ☕️',
'twitter:description': 'https://courses.chaicode.com/learn/Interview-Preparation-With-JavascriptCoupon: YOUTUBE200',
'twitter:image': 'https://i.ytimg.com/vi/znWS3zkdrq4/maxresdefault.jpg?sqp=-oaymwEmCIAKENAF8quKqQMa8AEB-AH-CYAC0AWKAgwIABABGGUgUShHMA8=&rs=AOn4CLBXY4-LhSGoyrs_IWkZeZzimQIANA',
'twitter:app:name:iphone': 'YouTube',
'twitter:app:id:iphone': '544007664',
'twitter:app:name:ipad': 'YouTube',
'twitter:app:id:ipad': '544007664',
'twitter:app:url:iphone': 'vnd.youtube://www.youtube.com/watch?v=znWS3zkdrq4&feature=applinks',
'twitter:app:url:ipad': 'vnd.youtube://www.youtube.com/watch?v=znWS3zkdrq4&feature=applinks',
'twitter:app:name:googleplay': 'YouTube',
'twitter:app:id:googleplay': 'com.google.android.youtube',
'twitter:app:url:googleplay': 'https://www.youtube.com/watch?v=znWS3zkdrq4',
'twitter:player': 'https://www.youtube.com/embed/znWS3zkdrq4',
'twitter:player:width': '1280',
'twitter:player:height': '720'
},
alternateImage: 'https://res.cloudinary.com/dejzy9q65/image/upload/v1706806074/preview_ha6nqf.png',
description: 'https://courses.chaicode.com/learn/Interview-Preparation-With-JavascriptCoupon: YOUTUBE200',
keywords: 'video, sharing, camera phone, video phone, free, upload'
}
Parameters
Name | Description | Location | Sample Value |
---|---|---|---|
Url | Link of the page that you want to extract metadata | Argument | https://www.youtube.com/watch?v=znWS3zkdrq4 |
Setting | Value |
---|---|
Runtime | Nodejs>=(18.12.1) |
Entrypoint | src/index.ts |
Build Commands | npm run start |
FAQs
A simple package to extract Open Graph Protocol (ogp.me) metadata from a given URL that can be used to generate link previews.
We found that @notamit/ogpparser 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.