# postcss-header **Repository Path**: mirrors_fengyuanchen/postcss-header ## Basic Information - **Project Name**: postcss-header - **Description**: Add a header to a file. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-05-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # postcss-header [![Downloads](https://img.shields.io/npm/dm/postcss-header.svg)](https://www.npmjs.com/package/postcss-header) [![Version](https://img.shields.io/npm/v/postcss-header.svg)](https://www.npmjs.com/package/postcss-header) > Add a header to a file. ## Install ```shell npm install postcss-header postcss --save-dev ``` ## Usage ```js const postcss = require('postcss'); const header = require('postcss-header'); const result = postcss(header({ header: '/* A simple header */', })).process('.foo{}'); console.log(result); // > /* A simple header */ // > .foo{} ``` ## Options ### header - Type: `String` - Default: `''` - Alias: banner The string will be put at the beginning of the CSS file. ## Versioning Maintained under the [Semantic Versioning guidelines](https://semver.org/). ## License [MIT](https://opensource.org/licenses/MIT) © [Chen Fengyuan](https://chenfengyuan.com/)