social-link-parser
Version:
Extract usernames, IDs, and metadata from social media URLs across 100+ platforms
84 lines (83 loc) • 2.31 kB
JSON
{
"name": "social-link-parser",
"version": "0.4.1",
"description": "Extract usernames, IDs, and metadata from social media URLs across 100+ platforms",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"scripts": {
"build": "npm run clean && npm run build:cjs && npm run build:esm && npm run fix:esm && npm run build:types",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build:types": "tsc -p tsconfig.types.json",
"fix:esm": "node scripts/fix-esm-imports.js",
"clean": "rimraf dist",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"lint": "eslint src --ext .ts",
"lint:fix": "eslint src --ext .ts --fix",
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"",
"prepublishOnly": "npm run build",
"prepare": "npm run build"
},
"keywords": [
"social-media",
"url-parser",
"link-parser",
"social-links",
"instagram",
"twitter",
"youtube",
"tiktok",
"linkedin",
"github",
"spotify",
"url-extraction",
"handle-validation",
"username-parser"
],
"author": "Nathaniel Laquis",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/Nathaniellaquis/link-parser.git"
},
"bugs": {
"url": "https://github.com/Nathaniellaquis/link-parser/issues"
},
"homepage": "https://github.com/Nathaniellaquis/link-parser#readme",
"engines": {
"node": ">=14.0.0"
},
"devDependencies": {
"@types/jest": "^29.5.0",
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.5.0",
"prettier": "^3.0.0",
"rimraf": "^5.0.0",
"ts-jest": "^29.1.0",
"typescript": "^5.0.0"
},
"dependencies": {
"libphonenumber-js": "^1.10.51"
}
}