npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

postcss-brazilian-portuguese-stylesheets

0.1.0 • Public • Published

PostCSS Brazilian Portuguese Stylesheets

PostCSS plugin for writing CSS in Portuguese

Write your CSS in portuguese!

Installation

$ npm install postcss-brazilian-portuguese-stylesheet

Usage

Add PostCSS in your project:

$ npm install postcss --save-dev

In your script:

const fs = require('fs');
const postcss = require('postcss');
const brazilianStyleSheets = require('postcss-brazilian-portuguese-stylesheet')
 
// css to be processed
var css = fs.readFileSync('./path/to/file.css', 'utf8');
 
postcss(brazilianStyleSheets)
.process(css)
.then(result =>{
  fs.writeFileSync('./path/to/output.css', result.css);
});

Example

Brazilian Stylesheet:

div {
  margem: 0 automatico;
  largura: 300px;
  altura: 300px;
  imagemFundo: url('path/to/image.jpg') naoRepetir;
}

CSS Output:

div {
  margin: 0 auto;
  width:300px;
  height:300px;
  background-image: url('path/to/image.jpg') no-repeat;
}

Changelog

See CHANGELOG

License

© MIT

install

npm i postcss-brazilian-portuguese-stylesheets

Downloadsweekly downloads

2

version

0.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability