3.2.25 • Published 7 months ago
@acrool/js-utils v3.2.25
Acrool JS Utils
Features
type use strictNullChecks and strictNullChecks
- Array - Methods related to handling arrays, such as groupBy, unique, deleting arrays, and immutable methods for adding to arrays.
- Browser - Queries related to browser functionalities, such as console.log, scroll height, window clientHeight.
- Convert - Type conversion, color code format conversion, file to base64, base64 to blob.
- Date - Handling date ranges, simplifying date display, converting total seconds into hours, minutes, and seconds, etc.
- Dom - Handling functions related to the DOM, such as manipulating Class, inserting iFrame, inserting Script, copying to clipboard, downloading blob.
- Equal - Determining if it's empty (including 0, empty array, blank string, null, empty object), whether it's JSON, and Compose matching.
- Number - Handling currency formatting, decimal point retention, and obtaining the difference between two ranges.
- Object - Handling enhanced type support for Object.keys, retaining true properties in an Object, inverting objects, and so on.
- String - Processing of strings, such as case conversion to camel case, enhanced string splitting, and so on.
- Uri - Handling URL-related tasks, such as encoding & decoding QueryString, obtaining the main domain, subdomain, and so on.
Installation
date dependencies dayjs library
yarn add @acrool/js-utilsExamples
These are examples of imports for various types. Refer to the documentation inside each library for other methods.
import {groupBy} from '@acrool/js-utils/array';
import {getScrollHeight} from '@acrool/js-utils/browser';
import {emptyToNull} from '@acrool/js-utils/convert';
import {simpleDate} from '@acrool/js-utils/date';
import {copyToClipboard} from '@acrool/js-utils/dom';
import {isEmpty, isNotEmpty} from '@acrool/js-utils/equal';
import {formatCurrency} from '@acrool/js-utils/number';
import {objectKeys} from '@acrool/js-utils/object';
import {removeHtmlTag} from '@acrool/js-utils/string';
import {decodeQueryString} from '@acrool/js-utils/uri';
import {delay} from '@acrool/js-utils/prmoise';Add module
./build-post-processors.js
Publishing
$ yarn build && npm publish ./dist --access=publicLicense
3.2.24
7 months ago
3.2.23
7 months ago
3.2.25
7 months ago
3.2.14-alpha.0
1 year ago
3.2.16-alpha.0
8 months ago
3.2.20
7 months ago
3.2.22
7 months ago
3.2.21
7 months ago
3.2.23-alpha.0
7 months ago
3.2.25-alpha.0
7 months ago
3.2.21-alpha.1
7 months ago
3.2.21-alpha.0
7 months ago
3.2.15-alpha.1
10 months ago
3.2.15-alpha.0
11 months ago
3.2.15-alpha.2
9 months ago
3.2.13-alpha.2
1 year ago
3.2.13-alpha.3
1 year ago
3.2.13-alpha.0
1 year ago
3.2.13-alpha.1
1 year ago
3.2.13
1 year ago
3.2.15
8 months ago
3.2.14
11 months ago
3.2.17
8 months ago
3.2.16
8 months ago
3.2.19
8 months ago
3.2.18
8 months ago
3.2.20-alpha.2
8 months ago
3.2.20-alpha.1
8 months ago
3.2.12
1 year ago
3.2.12-alpha.1
1 year ago
3.2.12-alpha.0
1 year ago
3.2.11
1 year ago
3.2.11-alpha.1
1 year ago
3.2.11-alpha.0
1 year ago
3.2.10-alpha.0
1 year ago
3.2.10
1 year ago
3.2.9
1 year ago
3.2.8
1 year ago
3.2.8-alpha.0
1 year ago
3.2.7
1 year ago
3.2.7-alpha.7
1 year ago
3.2.7-alpha.4
1 year ago
3.2.7-alpha.3
1 year ago
3.2.7-alpha.1
1 year ago
3.2.7-alpha.0
1 year ago
3.2.6
1 year ago
3.2.6-alpha.0
1 year ago