<commit_before>var fs = require('fs');
var BufferStreams = require('bufferstreams');
var ttf2woff2 = require('../src');
 
process.stdin.pipe(new BufferStreams(function(err, buf, cb) {
  if(err) {
    throw err;
  }
  cb(null, ttf2woff2(buf));
})).pipe(process.stdout);
<commit_msg>Fix CLI<commit_after>#! /usr/bin/env node

var fs = require('fs');
var BufferStreams = require('bufferstreams');
var ttf2woff2 = require('../src');

process.stdin.pipe(new BufferStreams(function(err, buf, cb) {
  if(err) {
    throw err;
  }
  cb(null, ttf2woff2(buf));
})).pipe(process.stdout);
{'fraction_non_alphanumeric': 0.1892361111111111, 'fraction_numerical': 0.013888888888888888, 'mean_word_length': 5.073684210526316, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1150920', 'n_tokens_mistral': 222, 'n_tokens_neox': 219, 'n_words': 42}