# vue-line-fit

> analytically fit single line text to box

Latest version **0.1.4** (published 2016-03-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-line-fit
pnpm add vue-line-fit
yarn add vue-line-fit
bun add vue-line-fit
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2016-03-06 |
| First published | 2016-03-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Paul Pflugradt |
| Maintainers | paulpflug |
| Keywords | line-fit, vue, resize, text, letter-spacing, font-size |

## Links

- npm: https://www.npmjs.com/package/vue-line-fit
- Repository: https://github.com/vue-comps/vue-line-fit
- Homepage: https://github.com/vue-comps
- Issues: https://github.com/vue-comps/vue-line-fit/issues
- npm.io page: https://npm.io/package/vue-line-fit

## Dependencies (1)

- [vue-mixins](https://npm.io/package/vue-mixins.md) ^0.2.0

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2016-03-06
- 0.1.3 — 2016-03-05
- 0.1.2 — 2016-03-05
- 0.1.1 — 2016-03-05
- 0.1.0 — 2016-03-05

## README

# vue-line-fit

## Why
To make text automatically fit

## What
`vue-line-fit` is a small component which fits its content to its dimensions.

### [See it in action](https://vue-comps.github.io/vue-line-fit)

# Install

```sh
npm install --save-dev vue-line-fit
```
or include `build/bundle.js`

## Usage
```coffee
# link the components up
components:
  "vc-line-fit": require "vue-line-fit"
  # or:
  "vc-line-fit": window.vueComps.vueLineFit
```
```jade
# in the template
vc-line-fit some text to fit
```
see `dev/` folder for examples

#### Props
| Name | type | default | description |
| ---:| --- | ---| --- |
| refit | Boolean | false | will refit on element resize |
| letterSpacing | Boolean | false | will use 'letter-spacing' to fill the whole box|
| valign | Boolean | false | will align text vertically in the box|

# Development
Clone repository
```sh
npm install
npm run dev
```
Browse to `http://localhost:8080/`

Best development experience in [atom](https://atom.io/) with [vue-autocompile](https://atom.io/packages/vue-autocompile).

## License
Copyright (c) 2016 Paul Pflugradt
Licensed under the MIT license.

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