Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-ttf2woff

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-ttf2woff - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

.coveralls.yml

25

package.json
{
"name": "gulp-ttf2woff",
"description": "Create a WOFF font from a TTF font",
"version": "1.0.2",
"description": "Create a WOFF font from a TTF one",
"version": "1.1.0",
"homepage": "https://github.com/nfroidure/gulp-ttf2woff",

@@ -28,9 +28,11 @@ "author": {

"scripts": {
"test": "mocha tests/*.mocha.js"
"test": "mocha tests/*.mocha.js",
"coveralls": "./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- tests/*.mocha.js -R spec -t 5000 && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"cover": "./node_modules/istanbul/lib/cli.js cover --report html ./node_modules/mocha/bin/_mocha -- tests/*.mocha.js -R spec -t 5000"
},
"dependencies": {
"ttf2woff": "latest",
"gulp-util": "~3.0.5",
"bufferstreams": "1.0.1",
"readable-stream": "^1.0.33"
"bufferstreams": "^1.0.2",
"gulp-util": "^3.0.6",
"readable-stream": "^2.0.1",
"ttf2woff": "^1.3.0"
},

@@ -47,6 +49,9 @@ "keywords": [

"devDependencies": {
"gulp": "~3.9.0",
"mocha": "~2.2.5",
"streamtest": "^1.2.0"
"coveralls": "^2.11.2",
"gulp": "^3.9.0",
"istanbul": "^0.3.16",
"mocha": "^2.2.5",
"mocha-lcov-reporter": "^0.0.2",
"streamtest": "^1.2.1"
}
}

4

README.md
# gulp-ttf2woff
> Create a WOFF font from a TTF font with [Gulp](http://gulpjs.com/).
> Create a WOFF font from a TTF one with [Gulp](http://gulpjs.com/).
[![NPM version](https://badge.fury.io/js/gulp-ttf2woff.png)](https://npmjs.org/package/gulp-ttf2woff) [![Build status](https://secure.travis-ci.org/nfroidure/gulp-ttf2woff.png)](https://travis-ci.org/nfroidure/gulp-ttf2woff) [![Dependency Status](https://david-dm.org/nfroidure/gulp-ttf2woff.png)](https://david-dm.org/nfroidure/gulp-ttf2woff) [![devDependency Status](https://david-dm.org/nfroidure/gulp-ttf2woff/dev-status.png)](https://david-dm.org/nfroidure/gulp-ttf2woff#info=devDependencies) [![Coverage Status](https://coveralls.io/repos/nfroidure/gulp-ttf2woff/badge.png?branch=master)](https://coveralls.io/r/nfroidure/gulp-ttf2woff?branch=master) [![Code Climate](https://codeclimate.com/github/nfroidure/gulp-ttf2woff.png)](https://codeclimate.com/github/nfroidure/gulp-ttf2woff)
[![NPM version](https://badge.fury.io/js/gulp-ttf2woff.svg)](https://npmjs.org/package/gulp-ttf2woff) [![Build status](https://secure.travis-ci.org/nfroidure/gulp-ttf2woff.svg)](https://travis-ci.org/nfroidure/gulp-ttf2woff) [![Dependency Status](https://david-dm.org/nfroidure/gulp-ttf2woff.svg)](https://david-dm.org/nfroidure/gulp-ttf2woff) [![devDependency Status](https://david-dm.org/nfroidure/gulp-ttf2woff/dev-status.svg)](https://david-dm.org/nfroidure/gulp-ttf2woff#info=devDependencies) [![Coverage Status](https://coveralls.io/repos/nfroidure/gulp-ttf2woff/badge.svg?branch=master)](https://coveralls.io/r/nfroidure/gulp-ttf2woff?branch=master) [![Code Climate](https://codeclimate.com/github/nfroidure/gulp-ttf2woff.svg)](https://codeclimate.com/github/nfroidure/gulp-ttf2woff)

@@ -6,0 +6,0 @@ ## Usage

@@ -0,1 +1,3 @@

'use strict';
var path = require('path');

@@ -7,3 +9,3 @@ var Stream = require('readable-stream');

const PLUGIN_NAME = 'gulp-ttf2woff';
var PLUGIN_NAME = 'gulp-ttf2woff';

@@ -24,4 +26,4 @@ // File level transform function

cb(null, buf);
} catch(err) {
cb(new gutil.PluginError(PLUGIN_NAME, err, {showStack: true}));
} catch(err2) {
cb(new gutil.PluginError(PLUGIN_NAME, err2, {showStack: true}));
}

@@ -95,3 +97,3 @@

};
}

@@ -98,0 +100,0 @@ // Export the file level transform function for other plugins usage

@@ -13,12 +13,2 @@ 'use strict';

// Erasing date to get an invariant created and modified font date
// See: https://github.com/fontello/ttf2woff/blob/c6de4bd45d50afc6217e150dbc69f1cd3280f8fe/lib/sfnt.js#L19
Date = (function(d) {
function Date() {
d.call(this, 3600);
}
Date.now = d.now;
return Date;
})(Date);
describe('gulp-ttf2woff conversion', function() {

@@ -36,3 +26,3 @@ var filename = __dirname + '/fixtures/iconsfont';

it('should let null files pass through', function(done) {
StreamTest[version].fromObjects([new gutil.File({

@@ -96,3 +86,3 @@ path: 'bibabelula.foo',

it('should let non-ttf files pass through', function(done) {
StreamTest[version].fromObjects([new gutil.File({

@@ -156,3 +146,3 @@ path: 'bibabelula.foo',

it('should let non-ttf files pass through', function(done) {
StreamTest[version].fromObjects([new gutil.File({

@@ -159,0 +149,0 @@ path: 'bibabelula.foo',

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