{"_id":"@allons-y/postcss-licensing","name":"@allons-y/postcss-licensing","dist-tags":{"latest":"6.0.0"},"versions":{"6.0.0":{"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"name":"@allons-y/postcss-licensing","version":"6.0.0","description":"Prepends licensing information to CSS files.","license":"MPL-2.0","author":{"name":"Cassondra Roberts","email":"castastrophe@users.noreply.github.com","url":"https://allons-y.studio"},"funding":[{"type":"github","url":" https://github.com/sponsors/castastrophe"},{"type":"buy-me-a-coffee","url":"https://www.buymeacoffee.com/castastrophe"}],"repository":{"type":"git","url":"git+https://github.com/allonsy-studio/postcss-licensing.git"},"bugs":{"url":"https://github.com/allonsy-studio/postcss-licensing/issues"},"type":"module","main":"index.js","scripts":{"changeset":"changeset","coverage":"c8 yarn test","format":"yarn lint --fix","lint":"eslint --no-error-on-unmatched-pattern --no-warn-ignored --cache '**/*'","postpack":"pinst --enable","prepack":"pinst --disable","prepare":"husky && envoy || true","semantic-release":"semantic-release","test":"ava"},"peerDependencies":{"postcss":"^8.0.0"},"devDependencies":{"@allons-y/envoy":"^1.1.0","@changesets/cli":"^2.31.0","@changesets/get-github-info":"^0.8.0","@eslint/compat":"^1.4.1","@eslint/js":"^10.0.1","@eslint/json":"^1.2.0","@eslint/markdown":"^8.0.2","@stylistic/eslint-plugin":"^2.13.0","ava":"^7.0.0","c8":"^11.0.0","eslint":"^10.4.1","eslint-config-prettier":"^10.1.8","eslint-plugin-jsonc":"^3.2.0","eslint-plugin-node":"^11.1.0","globals":"^17.6.0","husky":"^9.1.7","lint-staged":"^17.0.4","pinst":"^3.0.0","postcss":"^8.5.6","prettier":"^3.7.4"},"keywords":["css","licensing","plugin","postcss"],"engines":{"node":">=24"},"lint-staged":{"*":["eslint --fix --format stylish","prettier --write --ignore-unknown --no-error-on-unmatched-pattern --no-warn-ignored"],".github/renovate.json":"npx --yes --package renovate -- renovate-config-validator --strict"},"packageManager":"yarn@4.17.1","gitHead":"7446693fb5c865aca3897e416f7157926b08a4de","_id":"@allons-y/postcss-licensing@6.0.0","homepage":"https://github.com/allonsy-studio/postcss-licensing#readme","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-fCf3U+0j6YyLeRbwu+lFtiLT7nOC4qitlNEcov9gfLJ/iZc4kkMd9SRGc46C9EOMmYQHHE2UzS4h2qxAoirRlQ==","shasum":"24e80fbf554f94a9c980ca2f743047e46034700f","tarball":"https://registry.npmjs.org/@allons-y/postcss-licensing/-/postcss-licensing-6.0.0.tgz","fileCount":5,"unpackedSize":24812,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICbfas5afC58UyYULztEq1D/5KmVZdA2gTCA4XgUfwcOAiAggul+JtzCFD5AvP+gDVITGfrJwxbJQSawElcYVeua5A=="}]},"_npmUser":{"name":"castastrophe","email":"castastrophe+npm@hey.com"},"directories":{},"maintainers":[{"name":"castastrophe","email":"castastrophe+npm@hey.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-licensing_6.0.0_1784164953250_0.5786345095992169"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-16T01:22:33.130Z","6.0.0":"2026-07-16T01:22:33.401Z","modified":"2026-07-16T01:22:33.658Z"},"maintainers":[{"name":"castastrophe","email":"castastrophe+npm@hey.com"}],"description":"Prepends licensing information to CSS files.","homepage":"https://github.com/allonsy-studio/postcss-licensing#readme","keywords":["css","licensing","plugin","postcss"],"repository":{"type":"git","url":"git+https://github.com/allonsy-studio/postcss-licensing.git"},"author":{"name":"Cassondra Roberts","email":"castastrophe@users.noreply.github.com","url":"https://allons-y.studio"},"bugs":{"url":"https://github.com/allonsy-studio/postcss-licensing/issues"},"license":"MPL-2.0","readme":"<!-- weaver:banner:START -->\n<!-- auto-generated by Weaver — do not edit between these markers -->\n\n<a href=\"https://allons-y.studio\">\n    <img id=\"user-content-logo\" src=\"https://raw.githubusercontent.com/allonsy-studio/.github/main/assets/png/oss-banner.png\" alt=\"Brought to you by Allons-y Studio\" width=\"1500\">\n</a>\n\n<!-- weaver:banner:END -->\n\n<!-- weaver:header:START -->\n<h1 align=\"center\">postcss-licensing</h1>\n<p align=\"center\">\n  <b>Prepends licensing or other metadata to CSS files.</b>\n</p>\n\n<div align=\"center\">\n\n[![Tests](https://github.com/allonsy-studio/postcss-licensing/actions/workflows/testing.yml/badge.svg?branch=main)](https://github.com/allonsy-studio/postcss-licensing/actions/workflows/testing.yml)\n[![NPM version](https://img.shields.io/npm/v/postcss-licensing.svg)](https://www.npmjs.com/package/postcss-licensing)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org/)\n\n</div>\n<!-- weaver:header:END -->\n\n## Installation\n\n```sh\nyarn add -D postcss-licensing\npostcss -u postcss-licensing -o dist/index.css src/index.css\n```\n\n## Usage\n\nThis plugin will prepend your CSS file with a copyright/license. If no path or filename is provided, the plugin will try to find a file with the name `LICENSE` or `COPYRIGHT` at the cwd of the postcss config.\n\nYou can expect to turn a file like this:\n\n```css\n.spectrum--express {\n  --spectrum-actionbutton-border-color: transparent;\n  --spectrum-actionbutton-background-color: purple;\n}\n```\n\ninto this:\n\n```css\n/*!\n * <copyright content>\n */\n\n.spectrum--express {\n  --spectrum-actionbutton-background-color: purple;\n  --spectrum-actionbutton-border-color: transparent;\n}\n```\n\n## Options\n\n- `filename` [type: `string[] or string`]: optional filename or set of possible filenames. A single filename or full path is allowed. The first item found in the array will be used so be sure to provide them in priority order. Defaults to: `[\"COPYRIGHT\", \"LICENSE\"]`.\n- `cwd` [type: `string`]: optional working directory from which to search for license files. Defaults to: `process.cwd()`.\n- `skipIfEmpty` [type: `boolean`]: if true, skips adding the license when the rest of the file is empty. Defaults to: `true`.\n\n### Example\n\n```js\npostcss([\n  require('postcss-licensing')({\n    filename: 'LICENSE.txt',\n    cwd: path.join(process.cwd(), '../../'),\n    skipIfEmpty: false,\n  })\n]).process(...)\n```\n\n<!-- weaver:changesets:START -->\n<!-- weaver:changesets:END -->\n\n<!-- weaver:contribution:START -->\n\n## Contributing\n\nContributions are welcome! Please open an [issue](https://github.com/allonsy-studio/glob-concat-cli/issues/new) or submit a pull request.\n\n<!-- weaver:contribution:END -->\n\n<!-- weaver:license:START -->\n<!-- weaver:license:END -->\n\n<!-- weaver:funding:START -->\n<!-- auto-generated by Weaver — do not edit between these markers -->\n\n<h2>Funding ☕️</h2>\n\nIf you find this plugin useful and would like to buy me a coffee/beer as a small thank you, I would greatly appreciate it!\n\n<a href=\"https://www.buymeacoffee.com/castastrophe\">\n    <img src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" height=\"60\" width=\"217\" />\n</a>\n\n<!-- weaver:funding:END -->\n","readmeFilename":"README.md","_rev":"1-e7d9f5abb43713405e7337af2d70afd7"}