3.0.0 • Published 5 months ago

@gravityforms/utils v3.0.0

Weekly downloads
-
License
GPL-2.0-or-later
Repository
github
Last release
5 months ago

Gravity Forms Utils

Custom JavaScript utilities for Gravity Forms development and beyond.

Installation

Install the module as a dependency.

npm install @gravityforms/utils --save

Note: This package requires node 20.10.0 or later, and npm 10.2.3 or later.

Overview

A collection of JavaScript utilities that we use in our day to day JavaScript. This package is delivered as es6 modules, you probably want your webpack or other bundling system to run it through babel.

In the case of webpack and babel, this means adding it to your exclude property of the rules array in the module object, like so:

const config = {
	// other config
	module: {
		rules: [
			{
				test   : /\.js$/,
				exclude: [ /node_modules\/(?!(@gravityforms)\/).*/ ],
				use    : [
					{
						loader: 'babel-loader',
					},
				],
            }
        ],
	},
}

Usage

Example:

import { isJson } from '@gravityforms/utils';

const doSomethingWithJson = ( data ) => {
	if ( ! isJson( data ) ) {
		return;
    }
}

Documentation

The documentation for this package is available at http://docs.js.gravity.com/

3.0.0

5 months ago

2.0.3

10 months ago

2.0.4

9 months ago

2.0.2

1 year ago

2.0.0

1 year ago

1.5.9

1 year ago

1.5.8

1 year ago

1.5.5

1 year ago

1.5.7

1 year ago

1.5.6

1 year ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.3

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.16

2 years ago

1.2.17

2 years ago

1.2.14

2 years ago

1.2.0

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.9

2 years ago

1.2.12

2 years ago

1.2.10

2 years ago

1.2.11

2 years ago

1.1.0

2 years ago

1.0.1

3 years ago

0.0.1

3 years ago

1.0.0

3 years ago

1.0.0-beta.1

3 years ago