{"name":"remark-lint-no-empty-url","version":"3.0.1","keywords":["remark","lint","rule","remark-lint-rule","empty","url","link","image"],"author":{"url":"https://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"},"license":"MIT","_id":"remark-lint-no-empty-url@3.0.1","maintainers":[{"name":"johno","email":"johnotander@gmail.com"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"contributors":[{"url":"https://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"}],"homepage":"https://github.com/remarkjs/remark-lint#readme","bugs":{"url":"https://github.com/remarkjs/remark-lint/issues"},"xo":false,"dist":{"shasum":"2c335b1337d77b2de2e6c4fcdb25783c596713e1","tarball":"http://registry-npm.ywwl.com/remark-lint-no-empty-url/download/remark-lint-no-empty-url-3.0.1.tgz","fileCount":4,"integrity":"sha512-W8f6BNxhr3Srr7zpTaM3mZaaOMXIoGzayKw9Ev80DPIyk8wP9YUOXYbrwo83PQKlKkWMQhc9Y4cuOI+cJCS/gA==","signatures":[{"sig":"MEYCIQCLtVxWHNgq2cOxnKc2iyAOTQThXrMmewB+s2+ucJsBmwIhAPf5U6er3iU7eTrdjxrmGZJTTfJgg3jF8KRM4dOyMfIH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6251,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhG77cCRA9TVsSAnZWagAAO9UP/2e6tqWi/XLJS5FYwkOe\nR0ILczpgmxBezvJGj0R6XhnOG8quHXNRmu7gaxKJtfMK4+SMtMI1/30rdSUr\ny8es2xCKjTxJH1KyzWbhVV9SkkPsme2V+I30HoJtHPzY/H1IoAFAAzY92mBG\nN6jH/J9wHm/xMLYOb/542VSmfjUr0CTXMJuD0ZFC4hpeCRFv7se0eAfMLWA/\nH+o06fIi1uRCt7pW9YuKrRHX9g+ZfuR8EoImrd7fHh3JO44+dy3uPJbqEt+4\n/oVqCvqjlaAqlnvf5YYr1OZ//VEvArIcGjWFFsCFfn+hDg9tMSm4indz4JX/\nQQrMwPyquZ2UgPdevV5ZHmDk8SDNeJBC1m+4bf2cVxCGu/o6HOa6qEQPCfjW\nyl5J4qW55Pkeg6JORd/FbGOEn8K4iM/soR4JCmO2+8haR4NqvRINxKdWjqMi\n3RkFAdrGr3tFVeYVzDz1Ar8cDPrX4KMlF1dMAbFy88k2GIK2bUqSshIrFvQk\nMQAZG/heENVXjKwcS8DrXnITWbjinG6vRB10Lr97lMiw35earVAcCzZTosP4\nxiNXkR1tcZOdynrJ3p8a2cq2PUNamCh5+wT0R47M7Vg55C1tPbi0XWUBxZmm\nZP7+73DCnG1GYomsduxL3QXf5/+mhNjQfTB/7lS10F3rsjUTFhnI24HqcRNL\nt2BH\r\n=9PRg\r\n-----END PGP SIGNATURE-----\r\n","size":2415,"noattachment":false,"key":"/remark-lint-no-empty-url/-/remark-lint-no-empty-url-3.0.1.tgz"},"main":"index.js","type":"module","types":"index.d.ts","funding":{"url":"https://opencollective.com/unified","type":"opencollective"},"scripts":{"build":"rimraf \"*.d.ts\" && tsc && type-coverage"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"repository":{"url":"git+https://github.com/remarkjs/remark-lint.git","type":"git","directory":"packages/remark-lint-no-empty-url"},"_npmVersion":"7.20.6","description":"remark-lint rule to warn on empty URLs in links and images","directories":{},"sideEffects":false,"_nodeVersion":"16.6.1","dependencies":{"unified":"^10.0.0","@types/mdast":"^3.0.0","unist-util-visit":"^4.0.0","unified-lint-rule":"^2.0.0","unist-util-generated":"^2.0.0"},"typeCoverage":{"detail":true,"strict":true,"atLeast":100,"ignoreCatch":true},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/remark-lint-no-empty-url_3.0.1_1629208284233_0.18205496952606537","host":"s3://npm-registry-packages"},"readme":"<!--This file is generated-->\n\n# remark-lint-no-empty-url\n\n[![Build][badge-build-image]][badge-build-url]\n[![Coverage][badge-coverage-image]][badge-coverage-url]\n[![Downloads][badge-downloads-image]][badge-downloads-url]\n[![Size][badge-size-image]][badge-size-url]\n[![Sponsors][badge-funding-sponsors-image]][badge-funding-url]\n[![Backers][badge-funding-backers-image]][badge-funding-url]\n[![Chat][badge-chat-image]][badge-chat-url]\n\n[`remark-lint`][github-remark-lint] rule to warn when empty URLs are used.\n\n## Contents\n\n* [What is this?](#what-is-this)\n* [When should I use this?](#when-should-i-use-this)\n* [Presets](#presets)\n* [Install](#install)\n* [Use](#use)\n* [API](#api)\n  * [`unified().use(remarkLintNoEmptyUrl)`](#unifieduseremarklintnoemptyurl)\n* [Recommendation](#recommendation)\n* [Examples](#examples)\n* [Compatibility](#compatibility)\n* [Contribute](#contribute)\n* [License](#license)\n\n## What is this?\n\nThis package checks URLs of definitions, images, and links.\n\n## When should I use this?\n\nYou can use this package to check that URLs of definitions, images, and\nlinks are not empty.\n\n## Presets\n\nThis plugin is not included in presets maintained here.\n\n## Install\n\nThis package is [ESM only][github-gist-esm].\nIn Node.js (version 16+),\ninstall with [npm][npm-install]:\n\n```sh\nnpm install remark-lint-no-empty-url\n```\n\nIn Deno with [`esm.sh`][esm-sh]:\n\n```js\nimport remarkLintNoEmptyUrl from 'https://esm.sh/remark-lint-no-empty-url@4'\n```\n\nIn browsers with [`esm.sh`][esm-sh]:\n\n```html\n<script type=\"module\">\n  import remarkLintNoEmptyUrl from 'https://esm.sh/remark-lint-no-empty-url@4?bundle'\n</script>\n```\n\n## Use\n\nOn the API:\n\n```js\nimport remarkLint from 'remark-lint'\nimport remarkLintNoEmptyUrl from 'remark-lint-no-empty-url'\nimport remarkParse from 'remark-parse'\nimport remarkStringify from 'remark-stringify'\nimport {read} from 'to-vfile'\nimport {unified} from 'unified'\nimport {reporter} from 'vfile-reporter'\n\nconst file = await read('example.md')\n\nawait unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintNoEmptyUrl)\n  .use(remarkStringify)\n  .process(file)\n\nconsole.error(reporter(file))\n```\n\nOn the CLI:\n\n```sh\nremark --frail --use remark-lint --use remark-lint-no-empty-url .\n```\n\nOn the CLI in a config file (here a `package.json`):\n\n```diff\n …\n \"remarkConfig\": {\n   \"plugins\": [\n     …\n     \"remark-lint\",\n+    \"remark-lint-no-empty-url\",\n     …\n   ]\n }\n …\n```\n\n## API\n\nThis package exports no identifiers.\nIt exports no additional [TypeScript][typescript] types.\nThe default export is\n[`remarkLintNoEmptyUrl`][api-remark-lint-no-empty-url].\n\n### `unified().use(remarkLintNoEmptyUrl)`\n\nWarn when empty URLs are used.\n\n###### Parameters\n\nThere are no options.\n\n###### Returns\n\nTransform ([`Transformer` from `unified`][github-unified-transformer]).\n\n## Recommendation\n\nWhile it is possible to omit URLs in links and images,\nthat typically indicates a “placeholder” or something that has to be filled\nout later.\nIt’s recommended to fill them out.\n\n## Examples\n\n##### `ok.md`\n\n###### In\n\n```markdown\n[Mercury](https://example.com/mercury/).\n\n![Venus](https://example.com/venus/ \"Go to Venus\").\n\n[earth]: https://example.com/earth/\n```\n\n###### Out\n\nNo messages.\n\n##### `not-ok.md`\n\n###### In\n\n```markdown\n[Mercury]().\n\n![Venus](#).\n\n[earth]: <>\n```\n\n###### Out\n\n```text\n1:1-1:12: Unexpected empty link URL referencing the current document, expected URL\n3:1-3:12: Unexpected empty image URL referencing the current document, expected URL\n5:1-5:12: Unexpected empty definition URL referencing the current document, expected URL\n```\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line,\n`remark-lint-no-empty-url@4`,\ncompatible with Node.js 16.\n\n## Contribute\n\nSee [`contributing.md`][github-dotfiles-contributing] in [`remarkjs/.github`][github-dotfiles-health] for ways\nto get started.\nSee [`support.md`][github-dotfiles-support] for ways to get help.\n\nThis project has a [code of conduct][github-dotfiles-coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][file-license] © [Titus Wormer][author]\n\n[api-remark-lint-no-empty-url]: #unifieduseremarklintnoemptyurl\n\n[author]: https://wooorm.com\n\n[badge-build-image]: https://github.com/remarkjs/remark-lint/workflows/main/badge.svg\n\n[badge-build-url]: https://github.com/remarkjs/remark-lint/actions\n\n[badge-chat-image]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[badge-chat-url]: https://github.com/remarkjs/remark/discussions\n\n[badge-coverage-image]: https://img.shields.io/codecov/c/github/remarkjs/remark-lint.svg\n\n[badge-coverage-url]: https://codecov.io/github/remarkjs/remark-lint\n\n[badge-downloads-image]: https://img.shields.io/npm/dm/remark-lint-no-empty-url.svg\n\n[badge-downloads-url]: https://www.npmjs.com/package/remark-lint-no-empty-url\n\n[badge-funding-backers-image]: https://opencollective.com/unified/backers/badge.svg\n\n[badge-funding-sponsors-image]: https://opencollective.com/unified/sponsors/badge.svg\n\n[badge-funding-url]: https://opencollective.com/unified\n\n[badge-size-image]: https://img.shields.io/bundlejs/size/remark-lint-no-empty-url\n\n[badge-size-url]: https://bundlejs.com/?q=remark-lint-no-empty-url\n\n[esm-sh]: https://esm.sh\n\n[file-license]: https://github.com/remarkjs/remark-lint/blob/main/license\n\n[github-dotfiles-coc]: https://github.com/remarkjs/.github/blob/main/code-of-conduct.md\n\n[github-dotfiles-contributing]: https://github.com/remarkjs/.github/blob/main/contributing.md\n\n[github-dotfiles-health]: https://github.com/remarkjs/.github\n\n[github-dotfiles-support]: https://github.com/remarkjs/.github/blob/main/support.md\n\n[github-gist-esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[github-remark-lint]: https://github.com/remarkjs/remark-lint\n\n[github-unified-transformer]: https://github.com/unifiedjs/unified#transformer\n\n[npm-install]: https://docs.npmjs.com/cli/install\n\n[typescript]: https://www.typescriptlang.org\n","publish_time":1629208284377,"_cnpm_publish_time":1629208284377,"dist-tags":{"latest":"4.0.1"}}