UNPKG

youtube-video-id

Version:

Extracts the YouTube video ID from a URL or string.

71 lines (70 loc) 1.99 kB
{ "name": "youtube-video-id", "version": "1.0.4", "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 src", "test:watch": "jest --watch" }, "repository": { "type": "git", "url": "https://github.com/remarkablemark/youtube-video-id" }, "bugs": { "url": "https://github.com/remarkablemark/youtube-video-id/issues" }, "keywords": [ "youtube", "video", "id", "url", "string" ], "devDependencies": { "@eslint/compat": "1.1.1", "@eslint/eslintrc": "3.1.0", "@eslint/js": "9.9.1", "@rollup/plugin-commonjs": "26.0.1", "@rollup/plugin-terser": "0.4.4", "@rollup/plugin-typescript": "11.1.6", "@types/jest": "29.5.12", "@typescript-eslint/eslint-plugin": "8.3.0", "@typescript-eslint/parser": "8.3.0", "eslint": "9.9.1", "eslint-plugin-prettier": "5.2.1", "eslint-plugin-simple-import-sort": "12.1.1", "globals": "15.9.0", "jest": "29.7.0", "rollup": "4.21.1", "ts-jest": "29.2.5", "ts-node": "^10.9.1", "typescript": "5.5.4" }, "files": [ "cjs/", "dist/", "esm/" ], "license": "MIT" }