Skip to content

oojr/remove-css-dots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

remove css dots from a Radium style object

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published