0.0.5 • Published 2 years ago

@flemist/postcss-wrap v0.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

NPM Version NPM Downloads Build Status Test Coverage

Usage

import postcssWrap from '@flemist/postcss-wrap'

const input = '.class1{} .class2{}'
const output = await postcss(postcssWrap({
  type: 'atrule',
  props: {
    name: 'media',
    params: '(prefers-color-scheme: dark)',
  },
})).process(input)

// output: @media (prefers-color-scheme: dark) {.class1{} .class2{}}
import postcssWrap from '@flemist/postcss-wrap'

const input = '.class1{} .class2{}'
const output = await postcss(postcssWrap({
  type: 'rule',
  props: {
    name: 'media',
    selectors: ['.app', '.dev'],
  },
})).process(input)

// output: .app, .dev {.class1{} .class2{}}
0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago