npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@fakit/vue-heading

v0.2.4

Published

Is a part of [FA-Kit lib](https://github.com/fa-kit).

Downloads

15

Readme

FA-Kit vue module Heading

Is a part of FA-Kit lib.

Introduction

Hi!

THis is usefull module to work with headings in you project. Mostly is needed if you have 2 or more columns text that contains headings. In that case even with good design guide you may got problem with with an even or odd number of rows in the headings.

I've created this module to make auto calc offsets easier.

Installation

You can use source from github or install it like a npm package:

npm i @fakit/vue-heading

This is scoped package, so if in future you will use other packages from FA-Kit it will be in one directory.

Usage

When you install package you can import it to your Vue project:

import Heading from './components/Heading.vue'

// Then locally:

export default {
    components: {
        Heading
    }
}

// or global:

Vue.component('Heading', Heading)

And finally you can use it in your HTML:

<Heading
    :level="3"
    :calc-offset="true"
    :calc-move="[0, 2]">Привет, мир</Heading>

And in output you may got something like this:

<h3 
    class="heading heading--3" 
    style="line-height: 1.3; margin-top: 0px; margin-bottom: 17.6px;">Привет, мир</h3>

Also you can watch example with all props:

<Heading
    :level="2"
    :calc-offset="true"
    :calc-move="[0, 2]"
    :line-height="1"
    :text-line-size="22.4">Integer tincidunt. Cras dapibus.</Heading>

Props

  1. level — For correct heading level (h[level]). Only this property is required.
  2. line-height — Non important value, have fallback from original styles goes with CSS-code or browser defaults. But if you need to set specific lineheight you can use this one.
  3. calc-offset — Trigger to start calculation compensation for test lines. Without this param this is very simple heading.
  4. text-line-size — Value is needed if you need to calculate offset in case you document have no default params.
  5. calc-move — Contain ratio that will be used in calculating additional offset. Default value is [2, 0]: means that heading will have more offset from top to fit the lines.

Defaults

  1. Class name as default have FA-Kit logic mixed with BEM — heading heading--h1. You can pass additional classes.
  2. calc-move — [2, 0]. If you want change it pass array width new ratio, like [1, 1]