mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-13 01:22:11 +00:00
I don't really like the idea of having yet another config file just so we can get all deps from package.json and mark them as external. So let's add them to the build command manually. #95
89 lines
2.9 KiB
JSON
89 lines
2.9 KiB
JSON
{
|
|
"name": "youtubei.js",
|
|
"version": "2.0.0",
|
|
"description": "A full-featured wrapper around YouTube's private API. Allows you to retrieve info about any video, subscribe, unsubscribe, like, dislike, comment, search, download videos/music and much more!",
|
|
"author": "LuanRT <luan.lrt4@gmail.com> (https://github.com/LuanRT)",
|
|
"contributors": [
|
|
"Wykerd (https://github.com/wykerd/)",
|
|
"MasterOfBob777 (https://github.com/MasterOfBob777)"
|
|
],
|
|
"funding": "https://ko-fi.com/luanrt",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"test": "npx jest --verbose",
|
|
"test:node": "npm run build:node:prod && npx jest node",
|
|
"test:browser": "npm run build:browser:prod && npx jest browser",
|
|
"lint": "npx eslint ./lib",
|
|
"lint:fix": "npx eslint --fix ./lib",
|
|
"build:types": "npx tsc",
|
|
"build:parser-map": "node ./scripts/build-parser-json.js",
|
|
"build:general": "npm run build:parser-map && npx esbuild ./lib/Innertube.js --banner:js=\"/* eslint-disable */\" --bundle --target=node12 --keep-names --format=cjs --sourcemap",
|
|
"build:node": "npm run build:general -- --outfile=./build/node.js --platform=node --external:axios --external:buffer --external:events --external:flat --external:idb --external:node-forge --external:protocol-buffers-encodings --external:stream-browserify --external:user-agents --external:uuid --define:BROWSER=false",
|
|
"build:node:prod": "npm run build:node -- --minify",
|
|
"build:browser": "npm run build:general -- --outfile=./build/browser.js --platform=browser --define:BROWSER=true",
|
|
"build:browser:prod": "npm run build:browser -- --minify"
|
|
},
|
|
"types": "./typings/lib/Innertube.d.ts",
|
|
"main": "./build/node.js",
|
|
"browser": "./build/browser.js",
|
|
"directories": {
|
|
"test": "./test",
|
|
"typings": "./typings",
|
|
"examples": "./examples",
|
|
"lib": "./lib"
|
|
},
|
|
"dependencies": {
|
|
"axios": "^0.21.4",
|
|
"buffer": "^6.0.3",
|
|
"events": "^3.3.0",
|
|
"flat": "^5.0.2",
|
|
"idb": "^7.0.2",
|
|
"node-forge": "^1.3.1",
|
|
"protocol-buffers-encodings": "^1.1.1",
|
|
"stream-browserify": "^3.0.0",
|
|
"user-agents": "^1.0.778",
|
|
"uuid": "^8.3.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^17.0.31",
|
|
"esbuild": "^0.14.48",
|
|
"eslint": "^8.15.0",
|
|
"eslint-plugin-jsdoc": "^39.3.2",
|
|
"fake-dom": "^1.0.4",
|
|
"fake-indexeddb": "^4.0.0",
|
|
"jest": "^28.1.0",
|
|
"typescript": "^4.6.4",
|
|
"xhr2": "^0.2.1",
|
|
"xmlhttprequest-ssl": "^2.0.0"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/LuanRT/YouTube.js.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/LuanRT/YouTube.js/issues"
|
|
},
|
|
"homepage": "https://github.com/LuanRT/YouTube.js#readme",
|
|
"keywords": [
|
|
"yt",
|
|
"dl",
|
|
"ytdl",
|
|
"youtube",
|
|
"youtubedl",
|
|
"youtube-dl",
|
|
"youtube-downloader",
|
|
"innertube",
|
|
"innertubeapi",
|
|
"unofficial",
|
|
"downloader",
|
|
"livechat",
|
|
"ytmusic",
|
|
"dislike",
|
|
"search",
|
|
"comment",
|
|
"music",
|
|
"like",
|
|
"api"
|
|
]
|
|
}
|