remark-unlink-protocols
Version:
remark plugin to remove links and references based on their protocol
94 lines (93 loc) • 2.21 kB
JSON
{
"name": "remark-unlink-protocols",
"version": "1.0.0",
"description": "remark plugin to remove links and references based on their protocol",
"license": "MIT",
"keywords": [
"definitions",
"filter",
"links",
"markdown",
"mdast",
"plaintext",
"plugin",
"protocol",
"references",
"remark",
"remark-plugin",
"remove",
"text",
"unified"
],
"repository": {
"type": "git",
"url": "git+https://github.com/nextcloud-libraries/remark-unlink-protocols.git"
},
"bugs": "https://github.com/nextcloud-libraries/remark-unlink-protocols/issues",
"author": "Max <max@nextcloud.com>",
"contributors": [],
"sideEffects": false,
"type": "module",
"exports": "./index.js",
"files": [
"lib/",
"index.d.ts",
"index.js"
],
"dependencies": {
"@types/mdast": "^4.0.0",
"mdast-squeeze-paragraphs": "^6.0.0",
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@types/node": "^22.15.21",
"c8": "^10.1.3",
"oxlint": "^0.16.12",
"prettier": "^3.0.0",
"remark": "^15.0.0",
"remark-cli": "^12.0.1",
"remark-preset-wooorm": "^11.0.0",
"type-coverage": "^2.0.0",
"typescript": "^5.0.0"
},
"scripts": {
"build": "tsc --build --clean && tsc --build && type-coverage",
"format": "remark . --frail --output --quiet && prettier . --log-level warn --write && oxlint",
"prepack": "npm run build && npm run format",
"test": "npm run build && npm run format && npm run test:coverage",
"test:api": "node --conditions development test/index.js",
"test:coverage": "c8 --100 --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": [
"test/**/*.js"
],
"rules": {
"no-await-in-loop": "off"
}
}
],
"prettier": true
}
}