gulp-typogr

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i gulp-typogr

Weekly Downloads

7

Version

1.0.0

License

MIT

Last publish

Collaborators

  • jeddy3