{"id":15699951,"url":"https://github.com/jonschlinkert/markdown-slug","last_synced_at":"2025-10-03T18:36:20.535Z","repository":{"id":65990714,"uuid":"82509364","full_name":"jonschlinkert/markdown-slug","owner":"jonschlinkert","description":"Slugify the url part of a markdown heading link.","archived":false,"fork":false,"pushed_at":"2017-02-20T02:52:40.000Z","size":8,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-07T10:51:09.227Z","etag":null,"topics":["heading","link","markdown","slug","slugify","url"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonschlinkert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-20T02:44:48.000Z","updated_at":"2023-09-02T11:38:49.000Z","dependencies_parsed_at":"2023-06-05T15:15:29.006Z","dependency_job_id":null,"html_url":"https://github.com/jonschlinkert/markdown-slug","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"43903fd70bf5e0ffe36ef7593f4fe47b56bdf64b"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fmarkdown-slug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fmarkdown-slug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fmarkdown-slug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fmarkdown-slug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonschlinkert","download_url":"https://codeload.github.com/jonschlinkert/markdown-slug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253743035,"owners_count":21957148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["heading","link","markdown","slug","slugify","url"],"created_at":"2024-10-03T19:42:55.237Z","updated_at":"2025-10-03T18:36:20.426Z","avatar_url":"https://github.com/jonschlinkert.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# markdown-slug [![NPM version](https://img.shields.io/npm/v/markdown-slug.svg?style=flat)](https://www.npmjs.com/package/markdown-slug) [![NPM monthly downloads](https://img.shields.io/npm/dm/markdown-slug.svg?style=flat)](https://npmjs.org/package/markdown-slug)  [![NPM total downloads](https://img.shields.io/npm/dt/markdown-slug.svg?style=flat)](https://npmjs.org/package/markdown-slug) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/markdown-slug.svg?style=flat\u0026label=Travis)](https://travis-ci.org/jonschlinkert/markdown-slug)\n\n\u003e Slugify the url part of a markdown heading link.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save markdown-slug\n```\n\n## Usage\n\n```js\nvar slugify = require('markdown-slug');\n\n// forward slashes\nconsole.log(slugify('Some/Article'));\n//=\u003e 'somearticle'\n\n// backticks\nconsole.log(slugify('Some`Article`'));\n//=\u003e 'somearticle'\n\n// CJK punctuations\nconsole.log(slugify('存在，【中文】；《标点》、符号！的标题？'));\n//=\u003e '%E5%AD%98%E5%9C%A8%E4%B8%AD%E6%96%87%E6%A0%87%E7%82%B9%E7%AC%A6%E5%8F%B7%E7%9A%84%E6%A0%87%E9%A2%98'\n\n// \u0026\nconsole.log(slugify('Foo \u0026 Bar'));\n//=\u003e 'foo--bar'\n```\n\n## About\n\n### Related projects\n\n* [markdown-toc](https://www.npmjs.com/package/markdown-toc): Generate a markdown TOC (table of contents) with Remarkable. | [homepage](https://github.com/jonschlinkert/markdown-toc \"Generate a markdown TOC (table of contents) with Remarkable.\")\n* [remarkable](https://www.npmjs.com/package/remarkable): Markdown parser, done right. 100% Commonmark support, extensions, syntax plugins, high speed - all in… [more](https://github.com/jonschlinkert/remarkable) | [homepage](https://github.com/jonschlinkert/remarkable \"Markdown parser, done right. 100% Commonmark support, extensions, syntax plugins, high speed - all in one.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\nPlease read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards.\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme \u0026\u0026 verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install \u0026\u0026 npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nMIT\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.2, on February 19, 2017._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fmarkdown-slug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonschlinkert%2Fmarkdown-slug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fmarkdown-slug/lists"}