New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ttf2eot

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ttf2eot

Convert TTF font to EOT

  • 3.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is ttf2eot?

The ttf2eot npm package is a tool that converts TTF (TrueType Font) files to EOT (Embedded OpenType) files. This is particularly useful for web developers who need to support older versions of Internet Explorer that require EOT fonts.

What are ttf2eot's main functionalities?

Convert TTF to EOT

This feature allows you to convert a TTF file to an EOT file. The code sample reads a TTF file from the file system, converts it to an EOT buffer using the ttf2eot package, and then writes the EOT buffer back to the file system.

const ttf2eot = require('ttf2eot');
const fs = require('fs');

const ttfBuffer = fs.readFileSync('path/to/font.ttf');
const eotBuffer = ttf2eot(ttfBuffer).buffer;
fs.writeFileSync('path/to/font.eot', eotBuffer);

Other packages similar to ttf2eot

Keywords

FAQs

Package last updated on 04 Feb 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc