Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jstransformer-stylus

jstransformers6.3kMIT1.5.0

Stylus support for JSTransformers.

jstransformer, stylus

readme

jstransformer-stylus

Stylus support for JSTransformers.

Build Status Coverage Status Dependency Status Greenkeeper badge NPM version

Installation

npm install jstransformer-stylus

API

var stylus = require('jstransformer')(require('jstransformer-stylus'))

var css = "fonts = helvetica, arial, sans-serif\
body {\
  padding: 50px;\
  font: 14px/1.4 fonts;\
}"
stylus.render(css).body

License

MIT

changelog

Changelog

v1.5.0: 2017-12-16

  • Updated Boilerplate
  • Update to stylus@~0.54.5

v1.4.0: 2017-09-18

  • Updated Boilerplate

v1.3.0: 2016-12-09

  • Updated Boilerplate (major change: xo)
  • Extension support through use
    • Passing in string (supported in 1.2.0)
    • Passing in function (new in 1.3.0)
  • Because of xo
    • Rename a lot of variables
    • Put hasOwnProperty checks in for..in loops
    • Fix variable scope in for loops using let

v1.2.0: 2016-12-03

  • Updated Boilerplate
  • Extension support through use
    • By @calebeby in #16

v1.1.0: 2016-08-23

  • Relax version requirement for Stylus to 0.x
    • Stylus guarantees that 0.x versions will be compatible.

v1.0.0: 2015-08-04

  • No changes
  • Stable release

v0.0.7: 2015-07-21

v0.0.6: 2015-06-27

  • Fixed node 0.10 support

v0.0.5: 2015-06-26

  • Added inputFormats
  • Added async support

v0.0.4: 2015-06-25

  • Updated Boilerplate
  • Added local support

v0.0.3: 2015-05-25

  • Updated dependencies