gulp-textr
v1.0.3
Published
Transform text with Textr
Downloads
2
Maintainers
Readme
gulp-textr
Transform text with Textr
Install
npm install --save-dev gulp-textr
Usage
import gulp from 'gulp';
import textr from 'gulp-textr';
import quotes from 'typographic-quotes';
import ellipses from 'typographic-ellipses';
import spaces from 'typographic-single-spaces';
gulp.task('default', () => {
return gulp.src('src/text.md') // Hello "world"...
.pipe(textr(
[ spaces, quotes, ellipses ],
{ locale: 'en-us' }
))
.pipe(gulp.dest('dist')); // Hello “world”…
});
API
textr(plugins[, defaults])
Create new transform stream.
plugins
Type: array
Array of plugins and transform functions.
defaults
Type: object
Default options (see textr
defaults).
License
MIT