npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

jstransformer-resin

0.3.0

@robloach

npmHomeRepoSnykSocket
Downloads:1
$ npm install jstransformer-resin
DailyWeeklyMonthlyYearly

jstransformer-resin

Resin support for JSTransformers.

Build Status Coverage Status Dependency Status NPM version

Installation

npm install jstransformer-resin

API

var resin = require('jstransformer')(require('jstransformer-resin'));

var options = {
  browsers: ['last 2 version', 'ios', 'android 4'],
  // Add a namespace to your classes to avoid collisions
  namespace: 'jstransformer',
  // Add a license to the final output
  license: '// Copyright 2015 and stuff \n'
};
var css = ':root { var-grey: #666; } .btn { box-shadow: 0 1px var(grey); }';

resin.render(css, options);
//=> '// Copyright 2015 and stuff \n.topcoat-btn {\n  box-shadow: 0 1px #666;\n}'

License

MIT