Nearest Phase Modulator

    gulp-json-stylus

    0.1.2 • Public • Published

    gulp-json-stylus Build Status

    Gulp plugin that converts JSON files into stylus variables.

    Install

    $ npm install --save-dev gulp-json-stylus
    

    Usage

    var gulp = require('gulp');
    var jsonStylus = require('gulp-json-stylus');
     
    gulp.task('default', function () {
        return gulp.src('src/file.json')
            .pipe(jsonStylus())
            .pipe(gulp.dest('dist'));
    });

    API

    jsonStylus(options)

    options

    namespace

    Type: string
    Default: ''

    Add a namespace before each variable name.

    separator

    Type: string
    Default: '-'

    Add a separator for objects variable.

    "colors"{
        "main": "#F00",
        "secondary": "#FF0"
    }
    colors-main = #F00
    colors-secondary = #F00
     

    License

    Inspired by gulp-json-sass

    MIT © Damien Seguin

    Install

    npm i gulp-json-stylus

    DownloadsWeekly Downloads

    33

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • dmnsgn