{"id":15936034,"url":"https://github.com/zephraph/postcss-process-comments","last_synced_at":"2025-08-19T02:38:40.992Z","repository":{"id":57328339,"uuid":"73495708","full_name":"zephraph/postcss-process-comments","owner":"zephraph","description":"Extract text from css comments","archived":false,"fork":false,"pushed_at":"2017-06-18T14:35:25.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T13:23:04.973Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/zephraph.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":"2016-11-11T17:01:13.000Z","updated_at":"2022-02-01T20:11:23.000Z","dependencies_parsed_at":"2022-09-21T01:42:12.707Z","dependency_job_id":null,"html_url":"https://github.com/zephraph/postcss-process-comments","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephraph%2Fpostcss-process-comments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephraph%2Fpostcss-process-comments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephraph%2Fpostcss-process-comments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephraph%2Fpostcss-process-comments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zephraph","download_url":"https://codeload.github.com/zephraph/postcss-process-comments/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240267387,"owners_count":19774171,"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-07T04:03:25.386Z","updated_at":"2025-02-23T04:18:38.907Z","avatar_url":"https://github.com/zephraph.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postcss-process-comments [![Build Status](https://travis-ci.org/zephraph/postcss-process-comments.svg?branch=master)](https://travis-ci.org/zephraph/postcss-process-comments)\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/zephraph/postcss-process-comments.svg)](https://greenkeeper.io/)\n\nA plugin to process text from css comments\n\n## API\n\n* options\n  * process [_function_] **Required**\n    - Method to process the comment matching _pattern_. Receives a postcss [comment node](http://api.postcss.org/Comment.html) as an argument.\n  * pattern [_regex_]\n    - Pattern to filter comments on for processing\n\n## Usage\n\n```javascript\nimport processComment from 'postcss-process-comments';\nimport postcss from 'postcss';\n\nconst process = ({ text }) =\u003e console.log(text);\n\n// Prints all comments\npostcss([ processComment({ process }) ]);\n\n// prints all comments starting with the test TEST\npostcss([ processComment({ process, pattern: /^TEST/ })]);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephraph%2Fpostcss-process-comments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzephraph%2Fpostcss-process-comments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephraph%2Fpostcss-process-comments/lists"}