# @gpa-gemstone/helper-functions

> Helper Functions for gpa-gemstone packages

Latest version **0.0.62** (published 2026-09-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @gpa-gemstone/helper-functions
pnpm add @gpa-gemstone/helper-functions
yarn add @gpa-gemstone/helper-functions
bun add @gpa-gemstone/helper-functions
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; high quality score.

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

## Facts

| | |
|---|---|
| Version | 0.0.62 |
| Published | 2026-09-09 |
| First published | 2021-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 95.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | GridProtectionAlliance |
| Maintainers | scwills, ritchiecarroll, clackner-gpa, elwills, gsfbuildbot, pcrawford1 |
| Keywords | React, Interactive, GSF, Gemstone, GridProtectionAlliance |

## Links

- npm: https://www.npmjs.com/package/@gpa-gemstone/helper-functions
- Repository: https://github.com/GridProtectionAlliance/gpa-gemstone
- Homepage: https://github.com/GridProtectionAlliance/gpa-gemstone#readme
- Issues: https://github.com/GridProtectionAlliance/gpa-gemstone/issues
- npm.io page: https://npm.io/package/@gpa-gemstone/helper-functions

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [@gpa-gemstone/application-typings](https://npm.io/package/@gpa-gemstone/application-typings.md) 0.0.99

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.62 (latest) — 2026-09-09
- 0.0.61 — 2026-07-13
- 0.0.60 — 2026-05-06
- 0.0.59 — 2026-04-14
- 0.0.58 — 2026-04-03
- 0.0.57 — 2026-03-27
- 0.0.56 — 2026-03-21
- 0.0.55 — 2026-02-05
- 0.0.54 — 2026-01-16
- 0.0.53 — 2026-01-08
- 0.0.52 — 2025-12-12
- 0.0.51 — 2025-12-01
- 0.0.50 — 2025-11-20
- 0.0.49 — 2025-11-12
- 0.0.48 — 2025-10-10
- … 45 more at https://npm.io/package/@gpa-gemstone/helper-functions/versions

## README

# helper-functions

![gemstone logo](https://raw.githubusercontent.com/gemstone/web/master/docs/img/gemstone-wide-600.png)

The Gemstone Web Library organizes all Gemstone functionality related to web.

[![GitHub license](https://img.shields.io/github/license/gemstone/web?color=4CC61E)](https://github.com/gemstone/web/blob/master/LICENSE)

This library includes helpful npm package component for various helper functions such as generating information about a given html element, checking if a value is a number or an integer, or generating a random color.

## Usage

```typescript

# returns Unique GUID
CreateGuid();

# returns Text height
GetTextHeight(font: string, fontSize: string, word: string);

# returns Text width
GetTextWidth(font: string, fontSize: string, word: string);

# returns Node size
GetNodeSize(node: HTMLElement | null);

# returns True if int and false otherwise
IsInteger(value: any);

# returns True if number and false otherwise
IsNumber(value: any);

# returns random color
RandomColor();

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