Socket
Socket
Sign inDemoInstall

ttf2woff2

Package Overview
Dependencies
98
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ttf2woff2

Convert TTF files to WOFF2 ones.


Version published
Weekly downloads
195K
decreased by-7.56%
Maintainers
3
Install size
9.20 MB
Created
Weekly downloads
 

Changelog

Source

5.0.0 (2022-12-06)

Chore

  • bundle: Update Emscripten builds
  • ci: Add Node 19 to test matrix
  • dependencies: Update dependencies (jest) and remove unsued dependencies (mocha, mocha-lcov-reporter)

BREAKING CHANGES

  • dependencies: Drop Node 12 support

Readme

Source

ttf2woff2

Convert TTF files to WOFF2 ones.

GitHub license Coverage Status NPM version Dependency Status Package Quality

This is a NodeJS wrapper for the Google WOFF2 project. If the C++ wrapper compilation fail, it fallbacks to an Emscripten build.

Usage

CLI

Install ttf2woff2 globally, then:

cat font.ttf | ttf2woff2 > font.woff2

On Windows without cat, use (in PowerShell):

Start-Process -NoNewWindow -Wait ttf2woff2.cmd -RedirectStandardInput font.ttf -RedirectStandardOutput font.woff2
# OR
start-process -nnw -wait ttf2woff2.cmd -rsi font.ttf -rso font.woff2

API

var fs = require('fs');
var ttf2woff2 = require('ttf2woff2');

var input = fs.readFileSync('font.ttf');

fs.writeFileSync('font.woff2', ttf2woff2(input));

Contributing

Feel free to push your code if you agree with publishing under the MIT license.

Authors

License

MIT

Keywords

FAQs

Last updated on 05 Dec 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc