{"id":16676656,"url":"https://github.com/princed/postcss-banner","last_synced_at":"2025-03-21T18:31:51.257Z","repository":{"id":28802578,"uuid":"32325612","full_name":"princed/postcss-banner","owner":"princed","description":"PostCSS plugin to add text banner and footer to resulting file","archived":false,"fork":false,"pushed_at":"2022-05-02T00:53:15.000Z","size":223,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-13T13:11:12.434Z","etag":null,"topics":["banner","css-comment","postcss","postcss-plugin"],"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/princed.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":"2015-03-16T13:11:10.000Z","updated_at":"2024-01-31T22:31:25.000Z","dependencies_parsed_at":"2022-08-02T13:08:09.083Z","dependency_job_id":null,"html_url":"https://github.com/princed/postcss-banner","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princed%2Fpostcss-banner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princed%2Fpostcss-banner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princed%2Fpostcss-banner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princed%2Fpostcss-banner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/princed","download_url":"https://codeload.github.com/princed/postcss-banner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221817489,"owners_count":16885552,"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":["banner","css-comment","postcss","postcss-plugin"],"created_at":"2024-10-12T13:11:10.991Z","updated_at":"2024-10-28T10:34:40.438Z","avatar_url":"https://github.com/princed.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostCSS Banner [![Dependency Status](https://img.shields.io/david/princed/postcss-banner.svg)](https://david-dm.org/princed/postcss-banner) [![Current version](https://img.shields.io/npm/v/postcss-banner.svg?style=flat-square)](https://www.npmjs.com/package/postcss-banner) [![NPM downloads](https://img.shields.io/npm/dt/postcss-banner.svg?style=flat-square)](https://www.npmjs.com/package/postcss-banner) [![Build Status](https://img.shields.io/travis/princed/postcss-banner.svg?style=flat-square)](https://travis-ci.org/princed/postcss-banner)\n\n[PostCSS] plugin to add text banner and footer to resulting file.\n\n[PostCSS]: https://github.com/postcss/postcss\n\n## Migration from previous versions\n\n* Asterisks to beginning of line are added automatically (use `inline: false` to disable)\n* Bang isn't added automatically (use `important: true` to enable)    \n\n## Usage\n\nAdd PostCSS Banner to your build tool:\n\n```sh\nnpm install --save-dev postcss postcss-banner\n```\n\nSet `banner` and/or `footer` properties to add banner and/or footer to your\nresulting css (so use after minifier).\n\nExample:\n\n```js\npostcss(require('postcss-banner')({banner: 'banner'}))\n```\n\nyields\n\n```css\n/*\n * banner\n */\n.foo {\n}\n```\n\nValue will be converted to string and wrapped with spaces by default.\nSet `inline` to `true` to render the comment in a single line.\n\nExample:\n\n```js\nvar postcss = require('gulp-postcss');\nvar postcssBanner = require('postcss-banner');\n\nvar banner = 'single line comment';\n\ngulp.task('css', function () {\n  return gulp.src('./css/src/*.css')\n    .pipe(postcss(\n      [\n        postcssBanner({\n          banner: banner,\n          inline: true\n        })\n      ]))\n    .pipe(gulp.dest('./css'));\n});\n```\n\nyields\n\n```css\n/* single line comment */\n.foo {\n}\n```\n\n## Options\n\n### `banner`\n\nType: `String`\n\nThe string will be converted in a css comment and put at the\nbeginning of the css file.\n\n### `footer`\n\nType: `String`\n\nThe string will be converted in a css comment and put at the\nend of the css file.\n\n### `inline`\n\nType: `Boolean`\n\nDefault: `false`\n\nRender the banner all in one line.\n\n### `important`\n\nType: `Boolean`\n\nDefault: `false`\n\nAdd a bang to the comment. (eg. `/*! banner v.0.0.1 */`)\n\nNOTE: Important css comments are generally preserved from being removed\nduring a minification process.\n\n## License\n\n[MIT License](https://github.com/princed/postcss-banner/blob/master/LICENSE)\n© Eugene Datsky\n\nSee [PostCSS](http://postcss.org/) docs for examples for your environment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprinced%2Fpostcss-banner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprinced%2Fpostcss-banner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprinced%2Fpostcss-banner/lists"}