{"id":16690661,"url":"https://github.com/jonkemp/gulp-cssbeautify","last_synced_at":"2025-03-21T18:33:41.866Z","repository":{"id":13725950,"uuid":"16420153","full_name":"jonkemp/gulp-cssbeautify","owner":"jonkemp","description":"Reindent and reformat CSS","archived":false,"fork":false,"pushed_at":"2022-03-27T18:10:24.000Z","size":423,"stargazers_count":18,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-25T04:44:51.902Z","etag":null,"topics":["cssbeautify","gulp-plugin"],"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/jonkemp.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":"2014-01-31T20:42:45.000Z","updated_at":"2021-10-17T03:36:27.000Z","dependencies_parsed_at":"2022-09-26T19:41:16.888Z","dependency_job_id":null,"html_url":"https://github.com/jonkemp/gulp-cssbeautify","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonkemp%2Fgulp-cssbeautify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonkemp%2Fgulp-cssbeautify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonkemp%2Fgulp-cssbeautify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonkemp%2Fgulp-cssbeautify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonkemp","download_url":"https://codeload.github.com/jonkemp/gulp-cssbeautify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244849798,"owners_count":20520791,"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":["cssbeautify","gulp-plugin"],"created_at":"2024-10-12T16:04:41.955Z","updated_at":"2025-03-21T18:33:41.493Z","avatar_url":"https://github.com/jonkemp.png","language":"JavaScript","readme":"# [gulp](https://github.com/wearefractal/gulp)-cssbeautify ![Build Status](https://github.com/jonkemp/gulp-cssbeautify/actions/workflows/main.yml/badge.svg?branch=master) [![Coverage Status](https://coveralls.io/repos/jonkemp/gulp-cssbeautify/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/jonkemp/gulp-cssbeautify?branch=master)\n\n\u003e [CSS Beautify](https://github.com/senchalabs/cssbeautify) automatically formats your style to be consistent and easy to read\n\n\nGiven the following style:\n\n```css\n.menu{color:red} .navigation{background-color:#333}\n```\n\nCSS Beautify will produce:\n\n```css\n.menu {\n    color: red\n}\n\n.navigation {\n    background-color: #333\n}\n```\n\n\n## Install\n\nInstall with [npm](https://npmjs.org/package/gulp-cssbeautify)\n\n```\nnpm install --save-dev gulp-cssbeautify\n```\n\n\n## Example\n\n```js\nvar gulp = require('gulp'),\n    cssbeautify = require('gulp-cssbeautify');\n\ngulp.task('css', function() {\n    return gulp.src('./styles/*.css')\n        .pipe(cssbeautify())\n        .pipe(gulp.dest('./styles/'));\n});\n```\n\nWith options:\n\n```js\nvar gulp = require('gulp'),\n    cssbeautify = require('gulp-cssbeautify');\n\ngulp.task('css', function() {\n    return gulp.src('./styles/*.css')\n        .pipe(cssbeautify({\n            indent: '  ',\n            openbrace: 'separate-line',\n            autosemicolon: true\n        }))\n        .pipe(gulp.dest('./styles/'));\n});\n```\n\n\n## API\n\n### cssbeautify(options)\n\n\n#### options.indent\n\nType: `String`  \nDefault: \u003ccode\u003e'\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;'\u003c/code\u003e  \n\nSpaces to use for indentation.\n\n\n#### options.openbrace\n\nType: `String`  \nDefault: `end-of-line`  \nValues: `end-of-line`, `separate-line`\n\nDefines the placement of open curly brace.\n\n\n#### options.autosemicolon\n\nType: `Boolean`  \nDefault: `false`\n\nAlways inserts a semicolon after the last ruleset.\n\n\n## License\n\nMIT © [Jonathan Kemp](http://jonkemp.com)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonkemp%2Fgulp-cssbeautify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonkemp%2Fgulp-cssbeautify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonkemp%2Fgulp-cssbeautify/lists"}