# fonsta

> Web fonts package manager

Latest version **1.1.1** (published 2016-07-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install fonsta
pnpm add fonsta
yarn add fonsta
bun add fonsta
```

Provides the command `fonsta`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2016-07-13 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.20 |
| Dependencies | 11 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Alex Oshchepkov |
| Maintainers | roovenier |
| Keywords | font, fonts, fonsta, fonts manager, font face, font face generator, web fonts, web fonts generator, font squirrel, fontsquirrel, install fonts, get fonts |

## Links

- npm: https://www.npmjs.com/package/fonsta
- Repository: https://github.com/roovenier/fonsta
- Issues: https://github.com/roovenier/fonsta/issues
- npm.io page: https://npm.io/package/fonsta

## Dependencies (11)

- [colors](https://npm.io/package/colors.md) ^1.1.2
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [rimraf](https://npm.io/package/rimraf.md) ^2.5.2
- [request](https://npm.io/package/request.md) ^2.72.0
- [download](https://npm.io/package/download.md) ^4.4.3
- [fs-extra](https://npm.io/package/fs-extra.md) ^0.30.0
- [commander](https://npm.io/package/commander.md) ^2.9.0
- [cli-spinner](https://npm.io/package/cli-spinner.md) ^0.2.5
- [es6-promise](https://npm.io/package/es6-promise.md) ^3.2.1
- [find-remove](https://npm.io/package/find-remove.md) ^0.2.11
- [node-font-face-generator](https://npm.io/package/node-font-face-generator.md) 0.1.5

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads
- [@react-md/material-icons](https://npm.io/package/@react-md/material-icons.md) — 1.6K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2016-07-13
- 1.1.0 — 2016-07-07
- 1.0.9 — 2016-07-05
- 1.0.8 — 2016-07-04
- 1.0.7 — 2016-07-03
- 1.0.6 — 2016-07-02
- 1.0.5 — 2016-07-01
- 1.0.4 — 2016-06-29
- 1.0.3 — 2016-06-13
- 1.0.2 — 2016-06-04
- 1.0.1 — 2016-05-20
- 1.0.0 — 2016-05-17

## README

# Fonsta: add fonts to your project

Fonsta allows you to take and use fonts simply, because it works as a package manager like Bower or npm. The package interacts with [Font Squirrel](https://www.fontsquirrel.com/) and gets fonts directly from there.

[![Build Status](https://travis-ci.org/roovenier/fonsta.svg?branch=master)](https://travis-ci.org/roovenier/fonsta) [![npm version](https://badge.fury.io/js/fonsta.svg)](https://www.npmjs.com/package/fonsta)

## Install

```sh
$ npm install -g fonsta
```

## Usage

### Installing fonts and dependencies

```sh
# install dependencies from fonsta.deps.json
$ fonsta install

# install a font with regular style and add it to fonsta.deps.json
$ fonsta install <font> --save

# install a font with specific styles and add it to fonsta.deps.json
$ bower install <font>:<style>,<style>,<style> --save

# install a font without generating css file
$ fonsta install <font> --nocss
```

### Using fonts

Once you have got the font, css file will be generated with @font-face for chosen font. [See below](#configuration) how to configure all file paths.

### Uninstalling fonts

```sh
# uninstall a font with all available styles
$ fonsta uninstall <font>

# uninstall a font with specific styles
$ fonsta uninstall <font>:<style>,<style>
```

### Show all available styles of a font

```sh
$ fonsta show <font>
```

## Configuration

Fonsta can be configured by a `fonsta.config.json` file. For example:

```json
{
	"tmpDir": "/tmp/fonts",
	"fontsDir": "/assets/fonts",
	"cssDir": "/assets/css",
	"cssFile": "fonts.css"
}
```

`tmpDir` - temporary directory which stores downloaded fonts (cleaned after installation)

`fontsDir` - directory which stores resulting fonts

`cssDir` - directory which stores generated css file

`cssFile` - name for css file where will be included generated @font-face

---
_Source: https://npm.io/package/fonsta · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
