gulp-typogr

Typography utils

Usage no npm install needed!

<script type="module">
  import gulpTypogr from 'https://cdn.skypack.dev/gulp-typogr';
</script>

README

gulp-typogr

Typography utils using typogr

Issues with the output should be reported on the typogr issue tracker.

Install

$ npm install --save-dev gulp-typogr

Usage

var gulp = require('gulp');
var typogr = require('gulp-typogr');

gulp.task('default', function () {
  return gulp.src('src/*.html')
    .pipe(typogr())
    .pipe(gulp.dest('dist'));
});

API

typogr(options)

options.only

Type: array Default: {}

By default all the typogr filters are used. Restrict it using the "only" option.

var gulp = require('gulp');
var typogr = require('gulp-typogr');

gulp.task('default', function () {
  return gulp.src('src/*.html')
    .pipe(typogr({
      only: ['widont', 'smartypants']
    }))
    .pipe(gulp.dest('dist'));
});

License

MIT © Jeddy3