This package has been deprecated

Author message:

New package -> https://www.npmjs.com/package/@docchi/track-player

@docchi/cda-checking

1.0.7 • Public • Published

@docchi/cda-checking

Simple checking package, if cda video is deleted or available.

Okładka

Kontakt

Installation

Node.js required

npm install @docchi/cda-checking

How to use

Don't forget to add

"type": "module"

to package.json

How to use:

Examples of ID

Example:

import checkPlayer from "@docchi/cda-checking";

console.log(await 
  checkPlayer("https://www.cda.pl/video/115890987a")
)

If available

{
    "status": 200, 
    "message": "Source exists" 
}

Codes

  • 500 - Something went wrong!

  • 410 - Source removed by administrators.

  • 200 - Source exists

  • 206 - Page loaded, but couldn't verify if source exists

Support

IMPORTANT: Help me beeing efficient, please! I am developing in my free time for no money. Contribute to the project by posting complete, structured and helpful issues which I can reproduce quickly without asking for missing information.

ko-fi

License

MIT

Package Sidebar

Install

npm i @docchi/cda-checking

Weekly Downloads

2

Version

1.0.7

License

MIT

Unpacked Size

7.62 kB

Total Files

8

Last publish

Collaborators

  • xanax_