UNPKG

open-graph-scraper

Version:

Node.js scraper module for Open Graph and Twitter Card info

93 lines (92 loc) 2.8 kB
{ "name": "open-graph-scraper", "description": "Node.js scraper module for Open Graph and Twitter Card info", "version": "6.9.0", "license": "MIT", "main": "./dist/cjs/index.js", "types": "./types/index.d.ts", "exports": { ".": { "types": "./types/index.d.ts", "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js" }, "./types": "./types/lib/types.d.ts" }, "scripts": { "build:cjs": "tsc --project tsconfig.build.json --module commonjs --outDir dist/cjs/", "build:declaration": "tsc --project tsconfig.declaration.json --module node16 --moduleResolution node16", "build:esm": "tsc --project tsconfig.build.json --module node16 --moduleResolution node16 --outDir dist/esm/", "build": "rm -rf dist/ && npm run build:cjs && npm run build:esm", "ci": "npm run eslint && npm run build && npm run build:declaration && npm run test", "eslint:fix": "eslint . --ext .js,.ts --fix", "eslint": "eslint . --ext .js,.ts", "mocha:int": "ts-mocha --recursive \"./tests/integration/**/*.spec.ts\" --timeout 10000", "mocha:unit": "nyc --reporter=html --reporter=text --exclude=tests/ ts-mocha --recursive \"./tests/unit/**/*.spec.ts\"", "prepare": "npm run snyk-protect && npm run build", "snyk-protect": "snyk-protect", "test": "npm run mocha:unit && npm run mocha:int" }, "engines": { "node": ">=18.0.0" }, "author": { "name": "Josh Shemas", "email": "jjs90jjs@gmail.com", "url": "https://github.com/jshemas" }, "dependencies": { "chardet": "^2.0.0", "cheerio": "^1.0.0-rc.12", "iconv-lite": "^0.6.3", "undici": "^6.21.0" }, "files": [ "/dist", "/types", "index.ts", "CHANGELOG.md" ], "devDependencies": { "@snyk/protect": "^1.1295.0", "@types/mocha": "^10.0.10", "@types/node": "^18.19.70", "@typescript-eslint/eslint-plugin": "^7.18.0", "@typescript-eslint/parser": "^7.18.0", "chai": "^4.5.0", "eslint": "^8.57.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-airbnb-typescript": "^18.0.0", "eslint-plugin-import": "^2.31.0", "eslint-plugin-mocha": "^10.5.0", "eslint-plugin-promise": "^7.2.1", "mocha": "^10.8.2", "nyc": "^17.1.0", "sinon": "^19.0.2", "ts-mocha": "^10.0.0", "typescript": "5.5.4" }, "repository": { "type": "git", "url": "git+ssh://git@github.com/jshemas/openGraphScraper.git", "web": "http://github.com/jshemas/openGraphScraper" }, "keywords": [ "app links", "dublin core", "json ld", "meta tags", "metadata", "og", "ogp", "ogs", "open graph scraper", "open graph", "opengraph", "openGraphScraper", "scraper", "twitter card", "twitter" ], "snyk": true }