3.0.0 • Published 6 years ago

vxv-parser v3.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

Install

$ npm install vxv-parser

Usage

VXV-Parser namespaces your styles with any selector and automatically prefixes css rules.

Prefixed styles

const parser = require('vxv-parser');

parser('.hello', `
  .world {
    color: green;
  }
`);
// => .hello .world {
// =>   color: green;
// => }

Global styles

const parser = require('vxv-parser');

parser('.hello', `
  :global(body) {
    background: red;
  }
`);
// => body {
// =>   color: red;
// => }

License

MIT © Tobias Herber