{"name":"anchor-markdown-header","version":"0.8.4","description":"Generates an anchor for a markdown header.","main":"anchor-markdown-header.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/thlorenz/anchor-markdown-header.git"},"keywords":["markdown","anchor","link","regex","github","readme"],"author":{"name":"Thorsten Lorenz","email":"thlorenz@gmx.de","url":"thlorenz.com"},"license":"MIT","gitHead":"dcde154040d17d321664a7efc38e8531330335f9","devDependencies":{"tap":"~16.3.8"},"dependencies":{"emoji-regex":"~10.6.0","remove-markdown":"^0.6.2"},"_id":"anchor-markdown-header@0.8.4","bugs":{"url":"https://github.com/thlorenz/anchor-markdown-header/issues"},"homepage":"https://github.com/thlorenz/anchor-markdown-header#readme","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-20eMBMpts7k5rXAAj67geSqc/tsexHZOZJDWQD214YcDuNtyizDa7Q77sYa5rkao2FwsQP1WKRt2X6mphwmhbg==","shasum":"a0d36f51161a42a375aec02619efa1174f530c99","tarball":"http://registry-npm.ywwl.com/anchor-markdown-header/download/anchor-markdown-header-0.8.4.tgz","fileCount":9,"unpackedSize":33404,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/anchor-markdown-header@0.8.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGaFA+pZZc9Hqk8AxOiIA/+8bSyNSwBIk2+5nhCaU/isAiB/SjgxqO9I60u9ysfG2TaGhPp7LVP3dmzUnw2PvVhYlA=="}],"size":18830,"noattachment":false,"key":"/anchor-markdown-header/-/anchor-markdown-header-0.8.4.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2586c6d5-ac0e-4593-a075-8b4ece743fa8"}},"directories":{},"maintainers":[{"name":"thlorenz","email":"thlorenz10@gmail.com"},{"name":"andrewsouthpaw","email":"andrewsmith@alumni.stanford.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/anchor-markdown-header_0.8.4_1777167892986_0.07971070311445527"},"_hasShrinkwrap":false,"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":1777167893131,"_cnpm_publish_time":1777167893131,"dist-tags":{"backfill":"0.8.0","latest":"0.8.4"}}