Norvell's Public Machinations

    gulp-hypher

    1.0.3 • Public • Published

    gulp-hypher

    Preprocess HTML with Hypher

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

    Install

    $ npm install --save-dev gulp-hypher
    $ npm install --save-dev hyphenation.en-us
    

    Replacing en-us with the relevant hyphenation pattern for your language.

    Usage

    var gulp = require('gulp');
    var hypher = require('gulp-hypher');
    var hypher_en_us = require('hyphenation.en-us');
     
    gulp.task('default', function () {
        return gulp.src('index.html')
            .pipe(hypher(hypher_en_us))
            .pipe(gulp.dest('dist'));
    });

    This will add soft hyphens to all text nodes in the HTML passed.

    Install

    npm i gulp-hypher

    DownloadsWeekly Downloads

    0

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators

    • bobwallis