UNPKG

ttf2woff2

Version:
18 lines (15 loc) 296 B
#! /usr/bin/env node import { BufferStream } from 'bufferstreams'; import ttf2woff2 from '../dist/index.js'; process.stdin .pipe( new BufferStream(function (err, buf, cb) { if (err) { throw err; } cb(null, ttf2woff2(buf)); }), ) .pipe(process.stdout);