postcss-normalize-casing

1.0.0 • Public • Published

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).

Dependencies (0)

    Dev Dependencies (16)

    Package Sidebar

    Install

    npm i postcss-normalize-casing

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    193 kB

    Total Files

    13

    Last publish

    Collaborators

    • yozhikm