Socket
Socket
Sign inDemoInstall

gulp-ttf2eot

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-ttf2eot - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "gulp-ttf2eot",
"description": "Create an EOT font from a TTF font",
"version": "0.0.2",
"version": "0.0.3",
"homepage": "https://github.com/nfroidure/gulp-ttf2eot",

@@ -6,0 +6,0 @@ "author": {

@@ -1,2 +0,2 @@

var PassThrough = require('stream').PassThrough
var Stream = require('stream')
, gutil = require('gulp-util')

@@ -37,7 +37,7 @@ , BufferStreams = require('bufferstreams')

var stream = new PassThrough({objectMode: true});
var stream = new Stream.Transform({objectMode: true});
stream.on('data', function(file) {
if(file.isNull()) return; // Do nothing
if((!options.ignoreExt) && '.ttf' !== path.extname(file.path)) return;
stream._transform = function(file, unused, done) {
if(file.isNull()) return done(); // Do nothing
if((!options.ignoreExt) && '.ttf' !== path.extname(file.path)) return done();

@@ -62,4 +62,8 @@ file.path = gutil.replaceExtension(file.path, ".eot");

}
this.push(file);
done();
});
};

@@ -66,0 +70,0 @@ return stream;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc