youtube-dl-server
Advanced tools
Comparing version 1.1.1 to 1.2.1
@@ -7,2 +7,9 @@ # Changelog | ||
## [1.2.1] - 2022-07-12 | ||
### Added | ||
- Support for standalone cli | ||
### Changed | ||
- Installation instructions to install with `-g` | ||
## [1.1.1] - 2022-07-12 | ||
@@ -9,0 +16,0 @@ ### Added |
{ | ||
"name": "youtube-dl-server", | ||
"version": "1.1.1", | ||
"version": "1.2.1", | ||
"description": "Youtube Rest API, powered by youtube-dl", | ||
"main": "dist/app.js", | ||
"scripts": { | ||
"start": "ts-node src/app.ts", | ||
"build": "tsc -p .", | ||
"download": "node ./tools/download.js", | ||
@@ -12,2 +12,6 @@ "postinstall": "npm run download", | ||
}, | ||
"main": "./dist/app.js", | ||
"bin": { | ||
"youtube-dl-server": "./dist/app.js" | ||
}, | ||
"keywords": [ | ||
@@ -14,0 +18,0 @@ "typescript", |
@@ -8,4 +8,4 @@ # youtube-dl-server | ||
``` | ||
npm install | ||
npm start | ||
npm install -g youtube-dl-server | ||
youtube-dl-server | ||
``` | ||
@@ -12,0 +12,0 @@ |
@@ -0,1 +1,3 @@ | ||
#!/usr/bin/env node | ||
import express from 'express'; | ||
@@ -63,3 +65,4 @@ const cors = require('cors'); | ||
app.listen(port, () => { | ||
return console.log(`server is listening on http://localhost:${port}`); | ||
console.log(`server is listening on http://localhost:${port}`); | ||
console.log(`Try this url in your browser: http://localhost:${port}/watch?v=dQw4w9WgXcQ&cli=yt-dlp`); | ||
}); |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
17164
10
284
2