metadata-fetch
Advanced tools
Comparing version
@@ -10,4 +10,4 @@ declare const getMetadata: (url: string) => Promise<{ | ||
error: string; | ||
} | undefined>; | ||
}>; | ||
export { getMetadata }; |
@@ -64,7 +64,6 @@ "use strict"; | ||
} | ||
} else { | ||
return { error: "Please enter valid url" }; | ||
} | ||
}; | ||
getMetadata( | ||
"https://www.youtube.com/watch?v=pksTz4IBRVs&list=PLu1NXqt4iKA9mHnZvsWXohjExmJwwVUMl&index=7" | ||
).then((metadata) => console.log(metadata)).catch((error) => console.error(error)); | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -71,0 +70,0 @@ 0 && (module.exports = { |
{ | ||
"name": "metadata-fetch", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "This package is used to fetch the metadata of given url or site with help of cheerio.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1
-50%6346
-4.4%117
-1.68%