remove-css-dots

1.0.2 • Public • Published

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'
};

Readme

Keywords

Package Sidebar

Install

npm i remove-css-dots

Weekly Downloads

2

Version

1.0.2

License

ISC

Last publish

Collaborators

  • oojr