1.0.0 • Published 6 years ago

postcss-normalize-casing v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

postcss-normalize-casing

Build Status

This plugin normalizes your CSS, which written not in a case-sensitive, in a valid CSS.

Installation

yarn add --dev postcss postcss-normalize-casing

Usage

const fs = require('fs');
const postcss = require('postcss');

const css = fs.readFileSync('css/input.css', 'utf8');

export default async function(css) {
  const output = await postcss.process(css, {
    from: 'css/input.css',
  });
  const outputCSS = output.css;
}

css/input.css:

a {
  color: RED;
  transform: TRANSLATEY(10);
  CURSOR: PoInTeR;
}

outputCSS:

a {
  color: red;
  transform: translateY(10);
  cursor: pointer;
}

CONTRIBUTING

  • ⇄ Pull requests and ★ Stars are always welcome.
  • For bugs and feature requests, please create an issue.
  • Pull requests must be accompanied by passing automated tests ($ yarn test).