{"name":"anchor-markdown-header","version":"0.8.3","keywords":["markdown","anchor","link","regex","github","readme"],"author":{"url":"thlorenz.com","name":"Thorsten Lorenz","email":"thlorenz@gmx.de"},"license":"MIT","_id":"anchor-markdown-header@0.8.3","maintainers":[{"name":"thlorenz","email":"thlorenz10@gmail.com"},{"name":"andrewsouthpaw","email":"andrewsmith@alumni.stanford.edu"}],"homepage":"https://github.com/thlorenz/anchor-markdown-header#readme","bugs":{"url":"https://github.com/thlorenz/anchor-markdown-header/issues"},"dist":{"shasum":"727c63fc77dfecaa4edf0d687513539a07774524","tarball":"http://registry-npm.ywwl.com/anchor-markdown-header/download/anchor-markdown-header-0.8.3.tgz","fileCount":9,"integrity":"sha512-i2JealiBR1stamxKBE+LDebJ5p/0GPffwEs05KaYqG+3oS25Semk4AE+YG5lUsCGZNYp70I9K57tfqsm8Pdwxg==","signatures":[{"sig":"MEUCIDvOW8SRW3Jarv6LDNjp5DhKCUYJknUakITmlKyFNuqFAiEAn8E6wXPiuzgoyu2zbTV4A2lLINT/PC/mGkd/8M16czs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/anchor-markdown-header@0.8.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":31662,"size":17957,"noattachment":false,"key":"/anchor-markdown-header/-/anchor-markdown-header-0.8.3.tgz"},"main":"anchor-markdown-header.js","gitHead":"dcde154040d17d321664a7efc38e8531330335f9","scripts":{"test":"tap test/*.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2586c6d5-ac0e-4593-a075-8b4ece743fa8"}},"repository":{"url":"git://github.com/thlorenz/anchor-markdown-header.git","type":"git"},"_npmVersion":"11.9.0","description":"Generates an anchor for a markdown header.","directories":{},"_nodeVersion":"24.14.0","dependencies":{"emoji-regex":"~10.6.0","remove-markdown":"^0.6.2"},"_hasShrinkwrap":false,"devDependencies":{"tap":"~16.3.8"},"_npmOperationalInternal":{"tmp":"tmp/anchor-markdown-header_0.8.3_1774902686815_0.24156239352436382","host":"s3://npm-registry-packages-npm-production"},"readme":"# anchor-markdown-header [![Node.js CI](https://github.com/thlorenz/anchor-markdown-header/actions/workflows/node.js.yml/badge.svg)](https://github.com/thlorenz/anchor-markdown-header/actions/workflows/node.js.yml)\n\nGenerates an anchor for a markdown header.\n\n## Example\n\n```js\nvar anchor = require('anchor-markdown-header');\n\nanchor('\"playerJoined\" (player)'); \n// --> [\"playerJoined\" (player)](#playerjoined-player)\n\nanchor('fs.rename(oldPath, newPath, [callback])', 'nodejs.org', 'fs') \n// --> [fs.rename(oldPath, newPath, [callback])](#fs_fs_rename_oldpath_newpath_callback)\n\n// github.com mode is default\nanchor('\"playerJoined\" (player)') === anchor('\"playerJoined\" (player)', 'github.com'); \n// --> true\n```\n\n## API\n\n`anchor(header[, mode] [, repetition] [, href])`\n\n```js\n/**\n * @name anchorMarkdownHeader\n * @function\n * @param header      {String} The header to be anchored.\n * @param mode        {String} The anchor mode (github.com|nodejs.org|bitbucket.org|ghost.org|gitlab.com).\n * @param repetition  {Number} The nth occurrence of this header text, starting with 0. Not required for the 0th instance.\n * @param href        {String} The href to be used in the anchor.\n * @return            {String} The header anchor that is compatible with the given mode.\n */\n```\n","publish_time":1774902686980,"_cnpm_publish_time":1774902686980,"dist-tags":{"backfill":"0.8.0","latest":"0.8.4"}}