• Checks whether the target string is a valid Magnet URI

    Example

    expect(isMagnetURI('magnet:?xt.1=urn:sha1:ABCDEFGHIJKLMNOPQRSTUVWXYZ123456&xt.2=urn:sha1:ABCDEFGHIJKLMNOPQRSTUVWXYZ123456').value).toBeTruthy()
    

    Parameters

    • target: string

      The target

    Returns Result<boolean | undefined>

Generated using TypeDoc