{"id":949368,"name":"@freecodecamp/strip-comments","ecosystem":"npm","description":"Strip line and/or block comments from a string. Blazing fast, and works with JavaScript, Sass, CSS, Less.js, and a number of other languages.","homepage":"https://github.com/freeCodeCamp/strip-comments","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/freeCodeCamp/strip-comments","keywords_array":["ada comments","apl comments","applescript comments","block comment","block","block-comment","c comments","code comment","comment","comments","csharp comments","css comments","css","hashbang comments","haskell comments","java comments","javascript comments","javascript","js","less comments","less css","less","less.js","lessjs","line comment","line comments","line","line-comment","line-comments","lua comments","matlab comments","ocaml comments","pascal comments","perl comments","php comments","python comments","remove","ruby comments","sass comments","sass","shebang comments","sql comments","strip","swift comments","typscript comments","xml comments"],"namespace":"freecodecamp","versions_count":2,"first_release_published_at":"2021-05-26T08:43:10.822Z","latest_release_published_at":"2021-07-16T10:18:48.300Z","latest_release_number":"3.0.1","last_synced_at":"2026-08-23T01:05:12.037Z","created_at":"2022-04-07T17:35:42.150Z","updated_at":"2026-08-23T09:15:34.062Z","registry_url":"https://www.npmjs.com/package/@freecodecamp/strip-comments","install_command":"npm install @freecodecamp/strip-comments","documentation_url":null,"metadata":{"funding":null,"dist-tags":{"latest":"3.0.1"},"contentPolicy":null},"repo_metadata":{"id":48640712,"uuid":"366978032","full_name":"freeCodeCamp/strip-comments","owner":"freeCodeCamp","description":"Strip block comments or line comments from JavaScript code. ","archived":false,"fork":true,"pushed_at":"2023-04-04T01:58:01.000Z","size":142,"stargazers_count":2,"open_issues_count":0,"forks_count":5,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-08-23T00:44:21.060Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/jonschlinkert","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jonschlinkert/strip-comments","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freeCodeCamp.png","metadata":{},"created_at":"2021-05-13T08:04:13.000Z","updated_at":"2025-11-26T17:05:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/freeCodeCamp/strip-comments","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/freeCodeCamp/strip-comments","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeCodeCamp%2Fstrip-comments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeCodeCamp%2Fstrip-comments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeCodeCamp%2Fstrip-comments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeCodeCamp%2Fstrip-comments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freeCodeCamp","download_url":"https://codeload.github.com/freeCodeCamp/strip-comments/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeCodeCamp%2Fstrip-comments/sbom","scorecard":{"id":410552,"data":{"date":"2025-08-11","repo":{"name":"github.com/freeCodeCamp/strip-comments","commit":"78ef9437adf10a72b206a52bcc3a7d40868acf30"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Code-Review","score":1,"reason":"Found 5/30 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/freeCodeCamp/strip-comments/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/freeCodeCamp/strip-comments/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/freeCodeCamp/strip-comments/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/freeCodeCamp/strip-comments/test.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/test.yml:21","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":9,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/freeCodeCamp/.github/SECURITY.md:1","Info: Found linked content: github.com/freeCodeCamp/.github/SECURITY.md:1","Warn: One or no descriptive hints of disclosure, vulnerability, and/or timelines in security policy","Info: Found text in security policy: github.com/freeCodeCamp/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T22:36:13.486Z","repository_id":48640712,"created_at":"2025-08-18T22:36:13.486Z","updated_at":"2025-08-18T22:36:13.486Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36846503,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-22T15:14:58.755Z","status":"online","status_checked_at":"2026-08-23T02:00:05.822Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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"},"owner_record":{"login":"freeCodeCamp","name":"freeCodeCamp.org","uuid":"9892522","kind":"organization","description":"Learn to code for free with millions of other people around the world ","email":null,"website":"https://www.freecodecamp.org","location":"United States of America","twitter":"freeCodeCamp","company":null,"icon_url":"https://avatars.githubusercontent.com/u/9892522?v=4","repositories_count":225,"last_synced_at":"2026-08-21T03:45:37.656Z","metadata":{"has_sponsors_listing":true,"funding":{"github":"freecodecamp","patreon":"freecodecamp","custom":["www.freecodecamp.org/donate"]}},"html_url":"https://github.com/freeCodeCamp","funding_links":["https://github.com/sponsors/freecodecamp","https://patreon.com/freecodecamp","www.freecodecamp.org/donate"],"total_stars":450286,"followers":34316,"following":0,"created_at":"2022-11-05T08:36:38.901Z","updated_at":"2026-08-21T03:45:37.717Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freeCodeCamp","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freeCodeCamp/repositories"},"tags":[]},"repo_metadata_updated_at":"2026-08-23T09:15:34.062Z","dependent_packages_count":4,"downloads":2990,"downloads_period":"last-month","dependent_repos_count":170,"rankings":{"downloads":1.3244964258126046,"dependent_repos_count":1.160434184925371,"dependent_packages_count":4.515290680584369,"stargazers_count":16.734121053693542,"forks_count":8.879673926727936,"docker_downloads_count":null,"average":6.522803254348764},"purl":"pkg:npm/%40freecodecamp/strip-comments","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/@freecodecamp/strip-comments","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/npm/@freecodecamp/strip-comments","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/@freecodecamp/strip-comments/dependencies","status":null,"funding_links":["https://github.com/sponsors/freeCodeCamp"],"critical":null,"issue_metadata":{"last_synced_at":"2026-08-23T00:42:19.687Z","issues_count":2,"pull_requests_count":15,"avg_time_to_close_issue":308944.5,"avg_time_to_close_pull_request":668189.2142857143,"issues_closed_count":2,"pull_requests_closed_count":14,"pull_request_authors_count":6,"issue_authors_count":2,"avg_comments_per_issue":1.5,"avg_comments_per_pull_request":1.3333333333333333,"merged_pull_requests_count":10,"bot_issues_count":0,"bot_pull_requests_count":1,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/freeCodeCamp%2Fstrip-comments/issues","maintainers":[{"login":"lasjorg","count":4,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/lasjorg"},{"login":"a2937","count":2,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/a2937"},{"login":"Sembauke","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/Sembauke"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@freecodecamp%2Fstrip-comments/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@freecodecamp%2Fstrip-comments/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@freecodecamp%2Fstrip-comments/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@freecodecamp%2Fstrip-comments/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@freecodecamp%2Fstrip-comments/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@freecodecamp%2Fstrip-comments/codemeta","maintainers":[{"uuid":"raisedadead","login":"raisedadead","name":null,"email":"npm@mrugesh.dev","url":null,"packages_count":26,"html_url":"https://www.npmjs.com/~raisedadead","role":null,"created_at":"2022-11-20T15:56:36.966Z","updated_at":"2022-11-20T15:56:36.966Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/raisedadead/packages"},{"uuid":"freecodecamp-team","login":"freecodecamp-team","name":null,"email":"dev@freecodecamp.org","url":null,"packages_count":18,"html_url":"https://www.npmjs.com/~freecodecamp-team","role":null,"created_at":"2022-11-20T15:56:36.953Z","updated_at":"2022-11-20T15:56:36.953Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/freecodecamp-team/packages"},{"uuid":"nhcarrigan","login":"nhcarrigan","name":null,"email":"nhcarrigan@gmail.com","url":null,"packages_count":27,"html_url":"https://www.npmjs.com/~nhcarrigan","role":null,"created_at":"2022-11-20T15:56:36.891Z","updated_at":"2022-11-20T15:56:36.891Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/nhcarrigan/packages"},{"uuid":"shaunshamilton","login":"shaunshamilton","name":null,"email":"shauhami020@gmail.com","url":null,"packages_count":20,"html_url":"https://www.npmjs.com/~shaunshamilton","role":null,"created_at":"2023-02-01T09:59:04.215Z","updated_at":"2023-02-01T09:59:04.215Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/shaunshamilton/packages"},{"uuid":"sembauke","login":"sembauke","name":null,"email":"sem@freecodecamp.org","url":null,"packages_count":17,"html_url":"https://www.npmjs.com/~sembauke","role":null,"created_at":"2022-11-20T15:56:36.922Z","updated_at":"2022-11-20T15:56:36.922Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/sembauke/packages"},{"uuid":"ojeytonwilliams","login":"ojeytonwilliams","name":null,"email":"ojeytonwilliams@gmail.com","url":null,"packages_count":17,"html_url":"https://www.npmjs.com/~ojeytonwilliams","role":null,"created_at":"2022-11-20T15:56:37.011Z","updated_at":"2022-11-20T15:56:37.011Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/ojeytonwilliams/packages"},{"uuid":"dario_dc","login":"dario_dc","name":null,"email":"dicillodario@gmail.com","url":null,"packages_count":17,"html_url":"https://www.npmjs.com/~dario_dc","role":null,"created_at":"2024-03-16T03:02:16.773Z","updated_at":"2024-03-16T03:02:16.773Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/dario_dc/packages"},{"uuid":"huyenltnguyen","login":"huyenltnguyen","name":null,"email":"kindle-shrubbery.fesev@passmail.net","url":null,"packages_count":18,"html_url":"https://www.npmjs.com/~huyenltnguyen","role":null,"created_at":"2024-04-05T07:50:15.030Z","updated_at":"2024-04-05T07:50:15.030Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/huyenltnguyen/packages"}]}