1.0.2 • Published 7 years ago

remove-css-dots v1.0.2

Weekly downloads
5
License
ISC
Repository
github
Last release
7 years ago

remove-css-dots

utiliy for replacing and removing dots from compiled css style objects

Installation

$ npm install remove-css-dots

Usage

const removeCssDots = require('remove-css-dots');

// you have some compiled css with dots
const cssWithDots = {
  '.container': {
      width: '100%',
      height: '100%',
      fontSize: 25
    },
  '.text': {
      margin: 12,
      background: '#141414'
    },
  '.dialog': {
      padding: 20,
      backgroundColor: 'whitesmoke'
   }
 };

const styles = removeCssDots(cssWithDots);
console.log(styles)

will output

container: {
  width: '100%',
  height: '100%',
  fontSize: 25
},
text: {
  margin: 12,
  background: '#141414'
},
dialog: {
  padding: 20,
  backgroundColor: 'whitesmoke'
};
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago