{"id":17242760,"url":"https://github.com/imcuttle/lerna-command-toc","last_synced_at":"2025-03-26T03:44:18.912Z","repository":{"id":45113226,"uuid":"306259596","full_name":"imcuttle/lerna-command-toc","owner":"imcuttle","description":"lerna cli with custom command extensions","archived":false,"fork":false,"pushed_at":"2022-05-11T07:06:12.000Z","size":298,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T10:00:03.842Z","etag":null,"topics":[],"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/imcuttle.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"License","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-22T07:39:23.000Z","updated_at":"2022-05-11T07:05:59.000Z","dependencies_parsed_at":"2022-09-22T17:10:19.420Z","dependency_job_id":null,"html_url":"https://github.com/imcuttle/lerna-command-toc","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Flerna-command-toc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Flerna-command-toc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Flerna-command-toc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Flerna-command-toc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imcuttle","download_url":"https://codeload.github.com/imcuttle/lerna-command-toc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245585797,"owners_count":20639671,"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":[],"created_at":"2024-10-15T06:14:00.242Z","updated_at":"2025-03-26T03:44:18.891Z","avatar_url":"https://github.com/imcuttle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lerna-command-toc\n\n[![Build status](https://img.shields.io/travis/imcuttle/lerna-command-toc/master.svg?style=flat-square)](https://travis-ci.org/imcuttle/lerna-command-toc)\n[![Test coverage](https://img.shields.io/codecov/c/github/imcuttle/lerna-command-toc.svg?style=flat-square)](https://codecov.io/github/imcuttle/lerna-command-toc?branch=master)\n[![NPM version](https://img.shields.io/npm/v/lerna-command-toc.svg?style=flat-square)](https://www.npmjs.com/package/lerna-command-toc)\n[![NPM Downloads](https://img.shields.io/npm/dm/lerna-command-toc.svg?style=flat-square\u0026maxAge=43200)](https://www.npmjs.com/package/lerna-command-toc)\n[![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat-square)](https://conventionalcommits.org)\n\n\u003e lerna command for generate toc of packages in markdown\n\n- Input (`README.md`)\n\n```markdown\n# my-package\n\n## Packages\n\n## Other\n```\n\n- Output (After run `lerna toc`)\n\n```markdown\n# my-package\n\n## Packages\n\n- [package-a](packages/a) - a description\n- [package-b](packages/b) - b description\n\n## Other\n```\n\n## Installation\n\n```bash\nnpm install lerna-command-toc lerna-cli -D\n# or use yarn\nyarn add lerna-command-toc lerna-cli --dev\n```\n\n## Usage\n\n- `lerna.json`\n\n```json\n{\n  \"extendCommands\": [\"lerna-command-toc\"],\n  \"command\": {\n    \"toc\": {}\n  }\n}\n```\n\n- Run command\n\n```bash\nlerna toc --help\nlerna toc\n```\n\n- We recommend use `lerna-command-toc` with `pre-comment` git hook\n\n```json5\n// package.json\n{\n  husky: {\n    hooks: {\n      'pre-commit': 'npx lerna toc \u0026\u0026 git add README.md'\n    }\n  }\n}\n```\n\n## Contributing\n\n- Fork it!\n- Create your new branch:  \n  `git checkout -b feature-new` or `git checkout -b fix-which-bug`\n- Start your magic work now\n- Make sure npm test passes\n- Commit your changes:  \n  `git commit -am 'feat: some description (close #123)'` or `git commit -am 'fix: some description (fix #123)'`\n- Push to the branch: `git push`\n- Submit a pull request :)\n\n## Authors\n\nThis library is written and maintained by imcuttle, \u003ca href=\"mailto:imcuttle@163.com\"\u003eimcuttle@163.com\u003c/a\u003e.\n\n## License\n\nMIT - [imcuttle](https://github.com/imcuttle) 🐟\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimcuttle%2Flerna-command-toc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimcuttle%2Flerna-command-toc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimcuttle%2Flerna-command-toc/lists"}