# wsm-fonts

> This module adds custom fonts to web apps built with [Webstudio](https://webstudio.so)

Latest version **1.0.1** (published 2023-05-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install wsm-fonts
pnpm add wsm-fonts
yarn add wsm-fonts
bun add wsm-fonts
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-05-20 |
| First published | 2023-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Webstudio |
| Maintainers | gianksp |

## Links

- npm: https://www.npmjs.com/package/wsm-fonts
- Repository: https://github.com/webstudioso/wsm-fonts
- Homepage: https://github.com/webstudioso/wsm-fonts#readme
- Issues: https://github.com/webstudioso/wsm-fonts/issues
- npm.io page: https://npm.io/package/wsm-fonts

## Recent versions

- 1.0.1 (latest) — 2023-05-20
- 0.0.8 — 2023-05-20
- 0.0.7 — 2023-05-19
- 0.0.6 — 2023-05-17
- 0.0.5 — 2023-03-15
- 0.0.4 — 2023-03-15
- 0.0.3 — 2023-03-15
- 0.0.2 — 2023-03-15
- 0.0.1 — 2023-03-15

## README

# Webstudio Fonts Module

This module adds custom fonts to web apps built with [Webstudio](https://webstudio.so)

 ![Webstudio Module Fonts](https://github.com/webstudioso/wsm-fonts/actions/workflows/production.yml/badge.svg)

### Testing and Building Module
```
npm i
npm run test
npm run build
```

### Publish to NPMJS
```
npm publish
```

### Importing Dependency in Webstudio
Add it to the project, this is compatible with `grapesjs` as well.
```shell
npm i --save wsm-fonts@latest
```
To import in the editor add the file and include it as a Plugin
```js
import WSMFonts, { WSMFontStyles } from "wsm-fonts"

const editor = grapesjs.init({
    container: "#gjs",
    plugins: [
        WSMFonts
    ],
    canvas: {
        styles: [
            ...WSMFontStyles
        ],
    }
})
```

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