postcss-header
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/postcss-header package

3.0.3 • Public • Published

postcss-header

Downloads Version

Add a header to a file.

Install

npm install postcss-header postcss --save-dev

Usage

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.

License

MIT © Chen Fengyuan

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i postcss-header

    Weekly Downloads

    11,588

    Version

    3.0.3

    License

    MIT

    Unpacked Size

    3.36 kB

    Total Files

    5

    Last publish

    Collaborators

    • chenfengyuan