UNPKG

detect-external-link

Version:

Node.js plugin that analyzes the given link and determines if the URL is internal or external.

51 lines (50 loc) 1.41 kB
{ "name": "detect-external-link", "description": "Node.js plugin that analyzes the given link and determines if the URL is internal or external.", "version": "2.0.1", "exports": { ".": { "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js", "types": "./dist/esm/index.d.ts" } }, "types": "dist/esm/index.d.ts", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "files": [ "LICENSE", "dist/", "runkitExample.js" ], "scripts": { "build": "rm -rf dist/* && tsc -p tsconfig-esm.json && tsc -p tsconfig-cjs.json && bash fixup", "lint": "eslint src", "lint:fix": "eslint src --fix", "test": "npm run test:link && npm run test:tsd", "test:link": "mocha test/link.js", "test:tsd": "npx tsd" }, "repository": { "type": "git", "url": "https://github.com/trunkcode/detect-external-link.git" }, "keywords": [ "detection", "external-link" ], "author": "TrunkCode <support@trunkcode.com>", "license": "MIT", "bugs": { "url": "https://github.com/trunkcode/detect-external-link/issues" }, "homepage": "https://github.com/trunkcode/detect-external-link#readme", "runkitExampleFilename": "runkitExample.js", "devDependencies": { "@typescript-eslint/eslint-plugin": "6.7.3", "eslint": "8.50.0", "mocha": "10.2.0", "tsd": "0.29.0", "typescript": "5.2.2" } }