Socket
Socket
Sign inDemoInstall

dloader

Package Overview
Dependencies
47
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

12

loader.js
const request = require("request")
module.exports = {
progress: (id, callback) => {
request.get(`https://loader.to/ajax/progress.php?id=${id}`, (err, response, body) => {
progress: params => {
request.get(`https://loader.to/ajax/progress.php?id=${params.id}`, (err, response, body) => {
let data = JSON.parse(body)
callback({ url: data.download_url == null ? "Unavailable" : data.download_url, progress: data.progress, status: data.text })
params.callback({ url: data.download_url == null ? "Unavailable" : data.download_url, progress: data.progress, status: data.text })
})
},
download: (url, format, callback) => {
request.get(`https://loader.to/ajax/download.php?format=${format}&url=${url}`, (err, response, body) => {
download: params => {
request.get(`https://loader.to/ajax/download.php?format=${params.format}&url=${params.url}`, (err, response, body) => {
let data = JSON.parse(body)
callback({ id: data.id, title: data.title })
params.callback({ id: data.id, title: data.title })
})

@@ -16,0 +16,0 @@ }

{
"name": "dloader",
"version": "1.0.3",
"version": "1.0.4",
"description": "DLoader is an api that downloads videos and audios from various streaming platforms",

@@ -5,0 +5,0 @@ "main": "loader.js",

@@ -14,9 +14,13 @@ **DLoader**

```javascript
loader.download("link", "file format", data => {
/*
data = {
id: process id,
title: video title
}
*/
dloader.download({
url: "",
format: "",
callback: data => {
/*
data = {
id: process id,
title: video title
}
*/
}
})

@@ -26,10 +30,13 @@ ```

```javascript
loader.progress("id", data => {
/*
data = {
url: download url,
progress: download progress
status: download status
}
*/
dloader.progress({
id: "",
callback: data => {
/*
data = {
url: download url,
progress: download progress
status: download status
}
*/
}
})

@@ -36,0 +43,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc