cliprxyz
v1.0.5
Published
Fetch infos from a Twitch clip with Clipr.xyz website.
Downloads
10
Maintainers
Readme
cliprxyz
Fetch infos from a Twitch clip with Clipr.xyz website.
Install (with NPM)
npm i cliprxyz
Usage
const cliprxyz = require("cliprxyz");
cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res)
}).catch(err => {
console.log(err);
});
The package will shows:
{
clipName: 'Shows the clip name',
clipUrl: 'Shows the clip url',
creatorUsername: 'Shows the creator username',
creatorUrl: 'Shows the creator profile url',
creatorPictureUrl: 'Shows the creator profile picture url',
creatorWasPlaying: 'Shows what the creator was playing',
clippedOn: 'Shows the date from when the livestream was clipped'
}
Get the clip name
const cliprxyz = require("cliprxyz");
cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res.clipName)
}).catch(err => {
console.log(err);
});
Get the clip url
const cliprxyz = require("cliprxyz");
cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res.clipUrl)
}).catch(err => {
console.log(err);
});
Get the creator username
const cliprxyz = require("cliprxyz");
cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res.creatorUsername)
}).catch(err => {
console.log(err);
});
Get the creator url
const cliprxyz = require("cliprxyz");
cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res.creatorUrl)
}).catch(err => {
console.log(err);
});
Get the creator profile picture url (300x300)
const cliprxyz = require("cliprxyz");
cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res.creatorPictureUrl)
}).catch(err => {
console.log(err);
});
Get what the creator was playing
const cliprxyz = require("cliprxyz");
cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res.creatorWasPlaying)
}).catch(err => {
console.log(err);
});
Get when the livestream was clipped
const cliprxyz = require("cliprxyz");
cliprxyz.downloadClip("CLIP_URL").then(res => {
console.log(res.clippedOn)
}).catch(err => {
console.log(err);
});
Author
luisgbr1el