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 🙏

© 2026 – Pkg Stats / Ryan Hefner

sagar-image-text

v1.0.11

Published

<p align="center"> <img src="src/assets/sit.svg" width="80"> </p> <h1 align=center>Sagar Image Text</h1> <p align=center>Make your Text on Image Easier</p> <p align="center"> <a href="https://www.npmjs.com/package/sagar-image-text"> <img src="https://img

Downloads

4

Readme

1. Library usage example

https://sagargi.github.io/sagar-image-text

2. Installation

SagarImageText is available on NPM. You can install it using the following command:

npm i sagar-image-text

After installing the package, you import and directly use it on you vue code as:

import { ImageText, ImageTextCoordinate } from "sagar-image-text";
import 'sagar-image-text/style.css'

3. Getting Started

Here is the minimal example:

This is the example of component ImageText which is very basic.

<template>
  <div class="wrapper">
      <ImageText
          image-src="<path-to-image>"
          text="Your text here"
          text-position="bottom-left"
      />
  </div>
</template>

Also, here is an example of component ImageTextCoordinate which is more flexible than ImageText

<template>
  <div class="wrapper">
      <ImageTextCoordinate
          image-src="<path-to-image>"
          text="Your text here"
          image_x_coordinate="50"
          image_y_coordinate="50"
      />
  </div>
</template>

4. Props

Component ImageText has the following props:

| Prop | Type | Default | Description | |-------------|---------------|----------------------|--------------------------------------------------------------------------------------------------------------------| | imageSrc | String | required | Path to the source of the image. | | imageWidth | String | 100% | Width of the image. | | imageHeight | String | auto | Height of the image. | | text | String | your text here | Text you want to display. | | textColor | String | white | Color of the text on image. | | textSize | String | 10px | Font size of the text on image. | | textPosition | String | center | Position to keep the text. (top-left, top-right, top-center, bottom-left, bottom-right, bottom-center and center ) | | textBackgroundColor | String | rgba(0, 0, 0, 0.5) | Background of the text | | imageBorderRadius | String | 0px | Set the border radius of the image. | | textFontStyle | String | Arial, Helvetica, sans-serif; | Set the font style for the text on image. | | textFontFamily | String | normal | Set the font for the text on image. |

Component ImageTextCoordinate has same props as above but with extra props as:

| Prop | Type | Default | Description | |-------------|---------------|----------|---------------------------------------------------------------------------------------| | image_x_coordinate | Number | 50 | x-positon to place the text on image. | | image_y_coordinate | Number | 50 | y-positon to place the text on image. | | textAlign | String | center | Also allows to align the position of the text on an overlay (left, right and center). | | textBackgroundWidth | Number | number | Width of the text background. |