Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including node-fonts-used with all npm packages installed. Try it out:

var nodeFontsUsed = require("node-fonts-used")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

node-fonts-used v0.5.0

Node tool to find fonts used in a stylesheet

CSS font finder

Very much a work in progress

Finds the fonts used in a css files

Installation

$ npm install node-fonts-used

Usage

var fontsUsed = require('node-fonts-used');
var fontsArray = fontsUsed.findFonts('body { font-size: 12px; font-family: Arial; }');

Returns an array of fonts used.

You can also use the tool from the command line.

    $ fontsused file.css

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free