🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

woff2otf

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

woff2otf

Convert WOFF font files to OTF

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

woff2otf

NPM version License CI

Convert WOFF font files to OTF using NodeJS.

Installation

npm install woff2otf

Usage

CLI

woff2otf fontToConvert.woff outputFont.otf

WARNING: if the output file exists will be overwritten!

NodeJS

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

const woffFileBuffer = fs.readFileSync('path/to/file.woff');
const otfFileBuffer = woff2otf(woffFileBuffer);
fs.writeFileSync('path/to/file.otf', otfFileBuffer);

Thanks to

@hanikesn because this program is a port from Python of hanikesn/woff2otf

Keywords

font

FAQs

Package last updated on 08 Feb 2021

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