UNPKG

youtube-video-id

Version:

Extracts the YouTube video ID from a URL or string.

72 lines (71 loc) 2.02 kB
{ "name": "youtube-video-id", "version": "1.0.5", "description": "Extracts the YouTube video ID from a URL or string.", "author": "Mark <mark@remarkablemark.org>", "main": "./cjs/index.js", "module": "./esm/index.mjs", "types": "./cjs/index.d.ts", "exports": { "types": "./cjs/index.d.ts", "import": "./esm/index.mjs", "require": "./cjs/index.js" }, "scripts": { "build": "npm run build:cjs && npm run build:umd", "build:cjs": "tsc", "build:umd": "rollup --config --failAfterWarnings", "build:watch": "tsc --watch", "clean": "rm -rf cjs coverage dist", "docs": "typedoc", "lint": "eslint .", "lint:fix": "npm run lint -- --fix", "lint:tsc": "tsc --noEmit", "prepublishOnly": "npm run lint && npm run lint:tsc && npm run test:ci && npm run test:esm && npm run clean && npm run build", "test": "jest", "test:ci": "jest --ci --coverage --colors", "test:esm": "npm run build:cjs && node --test", "test:watch": "jest --watch" }, "repository": { "type": "git", "url": "git+https://github.com/remarkablemark/youtube-video-id.git" }, "bugs": { "url": "https://github.com/remarkablemark/youtube-video-id/issues" }, "keywords": [ "youtube", "video", "id", "url", "string" ], "devDependencies": { "@eslint/compat": "1.3.2", "@eslint/eslintrc": "3.3.1", "@eslint/js": "9.36.0", "@rollup/plugin-commonjs": "28.0.6", "@rollup/plugin-terser": "0.4.4", "@rollup/plugin-typescript": "12.1.4", "@types/jest": "30.0.0", "@typescript-eslint/eslint-plugin": "8.44.0", "@typescript-eslint/parser": "8.44.0", "eslint": "9.36.0", "eslint-plugin-prettier": "5.5.4", "eslint-plugin-simple-import-sort": "12.1.1", "globals": "16.4.0", "jest": "30.1.3", "rollup": "4.51.0", "ts-jest": "29.4.4", "ts-node": "^10.9.1", "tslib": "2.8.1", "typescript": "5.9.2" }, "files": [ "cjs/", "dist/", "esm/" ], "license": "MIT" }