Skip to content

CrocoDillon/font-store

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

font-store

NPM Version Build Status

Base64 encodes web fonts to cache in LocalStorage for high performance.

Quick Start

Install this module globally and convert a web font from Google:

$ npm install -g font-store
$ font-store "http://fonts.googleapis.com/css?family=Dosis"

If all goes right, a JSON file will be created for you named something like fonts.<MD5>.woff.json or fonts.<MD5>.woff2.json.

Advanced Usage

To see a list of available options type:

$ font-store --help

Currently the only option is to specify what format you want, either woff or woff2.

More information

You can read my article “Non-blocking web fonts using LocalStorage” or check out a demo on CodePen.

About

Base64 encodes web fonts to cache in LocalStorage for high performance.

Resources

Stars

Watchers

Forks

Packages

No packages published