linkgeni

1.0.1 • Public • Published

Logo

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 linkgeni

Usage/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);
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i linkgeni

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

9.66 kB

Total Files

7

Last publish

Collaborators

  • armusdigital