vxv-parser

3.0.0 • Public • Published

VXV - Parser

Build Status vxv

__VXV's__ css parser, powered by [stylis](https://github.com/thysultan/stylis.js)

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

/vxv-parser/

    Package Sidebar

    Install

    npm i vxv-parser

    Weekly Downloads

    1

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    3.95 kB

    Total Files

    9

    Last publish

    Collaborators

    • tobihrbr