sfnt2woff

1.0.1 • Public • Published

sfnt2woff

A woff convertrt for ttf or otf, Support for Node.js and Browsers.

Based on odemiral/woff2sfnt-sfnt2woff

Usage

With a package:

const fs = require('fs');
const sfnt2woff = require('sfnt2woff');
 
const buf = fs.readFileSync('/path/to/xxx.otf');
const woffBuf = sfnt2woff(buf);
 
fs.writeFileSync('/path/to/xxx.woff', woffBuf);

With cli:

sfnt2woff input.otf

Options:
  -o, --output  Ouput path  [default: "./"]

License

MIT

Package Sidebar

Install

npm i sfnt2woff

Weekly Downloads

578

Version

1.0.1

License

MIT

Unpacked Size

11.3 kB

Total Files

4

Last publish

Collaborators

  • laoshu133