Nondigestible Purple Mayonnaise
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    jstransformer-mythpublic

    jstransformer-myth

    Myth support for JSTransformers.

    Build Status Coverage Status Dependency Status NPM version

    Installation

    npm install jstransformer-myth
    

    API

    var myth = require('jstransformer')(require('jstransformer-myth'));
    var opts = {};
     
    myth.render('pre {\n  margin: calc(50px * 2);\n}', opts).body;
    //=> 'pre {\n  margin: 100px;\n}'
     
     
    var promise = myth.renderFileAsync('./path/to/hello.myth', opts);
    promise.then(function(data) {
      console.log(data.body);
      //=> 'pre {\n  margin: 100px;\n}'
    });

    future.css

    :root {
      --purple: #a6c776;
      --size: 1.2rem;
    }
     
    @custom-media --narrow-window screen and (max-width: 30em);
     
    @media (--narrow-window) {
      html {
        font-size: var(--size);
      }
    }
     
    a {
      color: var(--purple);
    }

    will be transformed to

    @media screen and (max-width: 30em) {
      html {
        font-size: 1.2rem;
      }
    }
     
    a {
      color: #a6c776;
    }

    License

    MIT

    install

    npm i jstransformer-myth

    Downloadsweekly downloads

    491

    version

    1.1.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar