linkgeni
v1.0.1
Published
Fetch streaming platform links using UPC or ISRC identifiers.
Readme

LinkGeni
LinkGeni is an npm package that provides functionality to handle music platform links. It includes two main functions: getUrlType and scanLink. getUrlType helps identify the type of a given URL, whether it's an ISRC, UPC, Apple Music, or Spotify link. On the other hand, scanLink takes a string value (which could be a UPC or ISRC) and returns links to various music streaming platforms such as Apple Music, Spotify, Deezer, Amazon Music, and YouTube.
Installation
npm install linkgeniUsage/Examples
const { scanLink } = require("linkgeni");
async function scan() {
try {
const links = await scanLink("8905510510624");
console.log(JSON.stringify(links));
} catch (error) {
console.error(error);
}
}const { checkUrlType } = require("linkgeni");
async function scan() {
try {
const type = await checkUrlType("8905510510624");
console.log(type);
} catch (error) {
console.error(error);
}
}