Socket
Book a DemoInstallSign in
Socket

@grandmastr/helpers

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grandmastr/helpers

Very handy set of helpers for frontend web and mobile(React Native) development

latest
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

@grandmastr/helpers

Super handy JavaScript utilities for frontend development.

Note: This is a work in progress.

Install

yarn add @grandmastr/helpers

Usage

import { debounce } from '@grandmastr/helpers';

Available Helpers

  • debounce: Ensures that your function is not fired too quickly and is delayed until a certain amount of time has passed.
  • emptyList: Returns an empty list object, useful when you need a clean slate array.
  • extractLink: Parses and extracts URLs from text content.
  • getExtension: Provides the extension of a given filename.
  • isKindOf: Checks the type of a given object and returns a boolean.
  • isObjectEmpty: Determines whether an object has no properties.
  • mimeTypes: A comprehensive list of MIME types and their corresponding file extensions.
  • truncateText: Trims a string to a specified length and appends an ellipsis or specified characters.

Building

yarn build

Testing

yarn test

MIT © GitHub @grandmastr  ·  Twitter @grandmastr_

Keywords

javascript

FAQs

Package last updated on 27 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts