{"id":19653028,"url":"https://github.com/csstools/postcss-commas","last_synced_at":"2025-04-28T17:31:11.852Z","repository":{"id":46199397,"uuid":"57261558","full_name":"csstools/postcss-commas","owner":"csstools","description":"Declare multiple, comma-separated properties","archived":true,"fork":false,"pushed_at":"2021-11-07T21:26:15.000Z","size":6,"stargazers_count":6,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-21T21:40:13.760Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csstools.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-28T01:47:14.000Z","updated_at":"2024-12-27T18:44:32.000Z","dependencies_parsed_at":"2022-09-18T17:50:22.790Z","dependency_job_id":null,"html_url":"https://github.com/csstools/postcss-commas","commit_stats":null,"previous_names":["jonathantneal/postcss-commas"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-commas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-commas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-commas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-commas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csstools","download_url":"https://codeload.github.com/csstools/postcss-commas/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250741003,"owners_count":21479517,"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-11-11T15:12:57.499Z","updated_at":"2025-04-28T17:31:11.835Z","avatar_url":"https://github.com/csstools.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostCSS Commas\n\n\u003ca href=\"https://github.com/postcss/postcss\"\u003e\u003cimg src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"80\" height=\"80\" align=\"right\"\u003e\u003c/a\u003e\n\n[![NPM Version][npm-img]][npm] [![Build Status][ci-img]][ci]\n\n[PostCSS Commas] allows you to declare multiple, comma-separated properties in CSS.\n\n```css\n/* before */\n\n.foo {\n\tposition: absolute;\n\ttop, left: 0;\n\tmargin, padding: 1em;\n}\n\n/* after */\n\n.foo {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tmargin: 1em;\n\tpadding: 1em;\n}\n```\n\n## Usage\n\nAdd [PostCSS Commas] to your build tool:\n\n```bash\nnpm install postcss-commas --save-dev\n```\n\n#### Node\n\n```js\nrequire('postcss-commas').process(YOUR_CSS);\n```\n\n#### PostCSS\n\nAdd [PostCSS] to your build tool:\n\n```bash\nnpm install postcss --save-dev\n```\n\nLoad [PostCSS Commas] as a PostCSS plugin:\n\n```js\npostcss([\n\trequire('postcss-commas')()\n]).process(YOUR_CSS);\n```\n\n#### Gulp\n\nAdd [Gulp PostCSS] to your build tool:\n\n```bash\nnpm install gulp-postcss --save-dev\n```\n\nEnable [PostCSS Commas] within your Gulpfile:\n\n```js\nvar postcss = require('gulp-postcss');\n\ngulp.task('css', function () {\n\treturn gulp.src('./src/*.css').pipe(\n\t\tpostcss([\n\t\t\trequire('postcss-commas')()\n\t\t])\n\t).pipe(\n\t\tgulp.dest('.')\n\t);\n});\n```\n\n#### Grunt\n\nAdd [Grunt PostCSS] to your build tool:\n\n```bash\nnpm install grunt-postcss --save-dev\n```\n\nEnable [PostCSS Commas] within your Gruntfile:\n\n```js\ngrunt.loadNpmTasks('grunt-postcss');\n\ngrunt.initConfig({\n\tpostcss: {\n\t\toptions: {\n\t\t\tuse: [\n\t\t\t\trequire('postcss-commas')()\n\t\t\t]\n\t\t},\n\t\tdist: {\n\t\t\tsrc: '*.css'\n\t\t}\n\t}\n});\n```\n\n[ci]:      https://travis-ci.org/jonathantneal/postcss-commas\n[ci-img]:  https://img.shields.io/travis/jonathantneal/postcss-commas.svg\n[npm]:     https://www.npmjs.com/package/postcss-commas\n[npm-img]: https://img.shields.io/npm/v/postcss-commas.svg\n\n[Gulp PostCSS]:  https://github.com/postcss/gulp-postcss\n[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss\n[PostCSS]:       https://github.com/postcss/postcss\n\n[PostCSS Commas]: https://github.com/jonathantneal/postcss-commas\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fpostcss-commas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsstools%2Fpostcss-commas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fpostcss-commas/lists"}