{"id":18653230,"url":"https://github.com/babel-utils/babel-normalize-comments","last_synced_at":"2025-04-11T16:32:18.137Z","repository":{"id":26357777,"uuid":"108498523","full_name":"babel-utils/babel-normalize-comments","owner":"babel-utils","description":"Merge comments together into a normalized string","archived":false,"fork":false,"pushed_at":"2022-05-12T12:07:15.000Z","size":39,"stargazers_count":8,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-09-18T10:17:52.726Z","etag":null,"topics":["ast","babel","babylon","comments","jsdoc","normalize"],"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/babel-utils.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-10-27T04:16:22.000Z","updated_at":"2023-10-12T05:44:47.000Z","dependencies_parsed_at":"2022-08-09T02:00:05.099Z","dependency_job_id":null,"html_url":"https://github.com/babel-utils/babel-normalize-comments","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/babel-utils%2Fbabel-normalize-comments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel-utils%2Fbabel-normalize-comments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel-utils%2Fbabel-normalize-comments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babel-utils%2Fbabel-normalize-comments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/babel-utils","download_url":"https://codeload.github.com/babel-utils/babel-normalize-comments/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223472765,"owners_count":17150745,"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":["ast","babel","babylon","comments","jsdoc","normalize"],"created_at":"2024-11-07T07:10:39.080Z","updated_at":"2024-11-07T07:10:39.776Z","avatar_url":"https://github.com/babel-utils.png","language":"JavaScript","readme":"# babel-normalize-comments\n\n\u003e Merge comments together into a normalized string\n\nPreserves indentation in many different comment styles\n\n## Install\n\n```\nyarn add babel-normalize-comments\n```\n\n## Usage\n\n```\nconst babylon = require('babylon');\nconst { normalizeComments, normalizeComment } = require('babel-normalize-comments');\n\nlet ast = babylon.parse(code);\n\n// normalize an array of comment nodes\nnormalizeComments(ast.comments);\n\n// normalize a single comment node\nnormalizeComment(ast.comments[0]);\n```\n\nSee [test.js](test.js) for examples of input and output.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabel-utils%2Fbabel-normalize-comments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbabel-utils%2Fbabel-normalize-comments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabel-utils%2Fbabel-normalize-comments/lists"}