UNPKG

rehype-infer-description-meta

Version:
103 lines (102 loc) 2.58 kB
{ "name": "rehype-infer-description-meta", "version": "2.0.0", "description": "rehype plugin to infer file metadata from the document", "license": "MIT", "keywords": [ "description", "excerpt", "file", "hast", "html", "meta", "plugin", "rehype", "rehype-plugin", "summary", "truncate", "unified" ], "repository": "rehypejs/rehype-infer-description-meta", "bugs": "https://github.com/rehypejs/rehype-infer-description-meta/issues", "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" }, "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", "contributors": [ "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)" ], "sideEffects": false, "type": "module", "exports": "./index.js", "files": [ "lib/", "index.d.ts", "index.js" ], "dependencies": { "@types/hast": "^3.0.0", "hast-util-excerpt": "^2.0.0", "hast-util-select": "^6.0.0", "hast-util-to-text": "^4.0.0", "hast-util-truncate": "^2.0.0", "unified": "^11.0.0", "unist-util-remove-position": "^5.0.0", "vfile": "^6.0.0" }, "devDependencies": { "@types/node": "^20.0.0", "c8": "^8.0.0", "hastscript": "^8.0.0", "prettier": "^3.0.0", "rehype": "^13.0.0", "rehype-meta": "^4.0.0", "remark-cli": "^11.0.0", "remark-preset-wooorm": "^9.0.0", "type-coverage": "^2.0.0", "typescript": "^5.0.0", "xo": "^0.56.0" }, "scripts": { "build": "tsc --build --clean && tsc --build && type-coverage", "format": "remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix", "prepack": "npm run build && npm run format", "test": "npm run build && npm run format && npm run test-coverage", "test-api": "node --conditions development test.js", "test-coverage": "c8 --100 --check-coverage --reporter lcov npm run test-api" }, "prettier": { "bracketSpacing": false, "singleQuote": true, "semi": false, "tabWidth": 2, "trailingComma": "none", "useTabs": false }, "remarkConfig": { "plugins": [ "remark-preset-wooorm" ] }, "typeCoverage": { "atLeast": 100, "detail": true, "ignoreCatch": true, "strict": true }, "xo": { "overrides": [ { "files": [ "*.ts" ], "rules": { "@typescript-eslint/ban-types": "off", "@typescript-eslint/consistent-type-definitions": "off" } } ], "prettier": true } }