# gtools

> Small library including utils methods for easier life

Latest version **0.2.62** (published 2021-09-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install gtools
pnpm add gtools
yarn add gtools
bun add gtools
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.2.62 |
| Published | 2021-09-22 |
| First published | 2018-07-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Gabriel Csollei |
| Maintainers | g43riko |
| Keywords | tools, utils, typescript, javascript |

## Links

- npm: https://www.npmjs.com/package/gtools
- Repository: https://github.com/G43riko/GTools
- Homepage: https://g43riko.github.io/GTools
- Issues: https://github.com/G43riko/GTools/issues
- npm.io page: https://npm.io/package/gtools

## Dependencies (3)

- [glob](https://npm.io/package/glob.md) ^7.1.7
- [tslib](https://npm.io/package/tslib.md) ^2.3.1
- [moment](https://npm.io/package/moment.md) ^2.29.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.2.62 (latest) — 2021-09-22
- 0.2.61 — 2021-09-22
- 0.2.60 — 2021-08-26
- 0.2.59 — 2021-08-05
- 0.2.58 — 2021-08-05
- 0.2.57 — 2021-04-10
- 0.2.56 — 2021-04-09
- 0.2.54 — 2021-03-31
- 0.2.53 — 2021-03-20
- 0.2.52 — 2021-03-20
- 0.2.51 — 2021-02-13
- 0.2.50 — 2020-12-05
- 0.2.49 — 2020-12-05
- 0.2.48 — 2020-12-03
- 0.2.47 — 2020-12-03
- … 54 more at https://npm.io/package/gtools/versions

## README

[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/G43riko/GTools/blob/master/LICENSE)
[![Actions status](https://github.com/G43riko/GTools/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/G43riko/GTools/actions)
![REPO SIZE](https://img.shields.io/github/repo-size/G43riko/GTools.svg?style=flat-square)
![CODE SIZE](https://img.shields.io/github/languages/code-size/G43riko/GTools.svg?style=flat-square)
[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/G43riko/GTools)](https://github.com/G43riko/GTools/pulse)
[![GitHub last commit](https://img.shields.io/github/last-commit/G43riko/GTools)](https://github.com/G43riko/GTools/commits/main)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=G43riko_GTools&metric=coverage)](https://sonarcloud.io/summary/new_code?id=G43riko_GTools)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=G43riko_GTools&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=G43riko_GTools)
[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=G43riko_GTools&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=G43riko_GTools)
[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=G43riko_GTools&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=G43riko_GTools)
[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=G43riko_GTools&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=G43riko_GTools)
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=G43riko_GTools&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=G43riko_GTools)

<!--
[![npm version](https://badge.fury.io/js/gtools.svg)](https://badge.fury.io/js/gtools)
[![GitHub version](https://badge.fury.io/gh/G43riko%2FGTools.svg)](https://badge.fury.io/gh/G43riko%2FGTools)
[![JSR](https://jsr.io/badges/@g43/utils)](https://jsr.io/@g43/utils)
[![JSR Score](https://jsr.io/badges/@g43/utils/score)](https://jsr.io/@g43/utils)
[![Build Status](https://api.travis-ci.org/G43riko/GTools.svg?branch=master)](https://travis-ci.org/G43riko/GTools)
[![Test Coverage](https://api.codeclimate.com/v1/badges/bbb0af52dcd730cdc422/test_coverage)](https://codeclimate.com/github/G43riko/GTools/test_coverage)
[![Coverage Status](https://coveralls.io/repos/github/G43riko/GTools/badge.svg?branch=master)](https://coveralls.io/github/G43riko/GTools?branch=master)
[![Dependency Status](https://david-dm.org/G43riko/GTools.svg)](https://david-dm.org/G43riko/GTools)
[![Code Climate](https://codeclimate.com/github/G43riko/GTools.svg)](https://codeclimate.com/github/G43riko/GTools)
[![devDependencies Status](https://david-dm.org/G43riko/GTools/dev-status.svg)](https://david-dm.org/G43riko/GTools?type=dev)
[![HitCount](http://hits.dwyl.io/G43riko/GToools.svg)](http://hits.dwyl.io/G43riko/GToools)
-->

# GTools

[![NPM](https://nodei.co/npm/gtools.png)](https://www.npmjs.com/package/gtools)

[Documentation](https://g43riko.github.io/GTools/)

## Scan docker

```bash
docker run \
    --rm \
    -e SONAR_SCANNER_OPTS="-Dsonar.projectKey=G43riko_GTools" \
    -e SONAR_SCANNER_OPTS="-Dsonar.organization=g43riko" \
    -e SONAR_SCANNER_OPTS="-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info" \
    -e SONAR_TOKEN=35e611231b768d371f22e880a31bbada5f9359d3 \
    -v ".:/usr/src" \
    sonarsource/sonar-scanner-cli
```

## Contents

- [GTools](#gtools)
  - [Scan docker](#scan-docker)
  - [Contents](#contents)
  - [Installation](#installation)
    - [NodeJS](#nodejs)
    - [Browser](#browser)
  - [List of methods](#list-of-methods)
  - [Structure of src directory](#structure-of-src-directory)
  - [Release steps](#release-steps)

## Installation

### NodeJS

run `npm install gtools`

```javascript
import { ArrayUtils } from "gtools";

const min = ArrayUtils.min([1, 2, 3]);
```

### Browser

```html
<!DOCTYPE html>
<html>
    <head>
        <title>Test</title>
        <script type="text/javascript" src="gtools.web.js"></script>
    </head>
    <body>
        <script type="text/javascript">
            const min = G.array.min([1, 2, 3]);
        </script>
    </body>
</html>
```

## List of methods

**TODO** ##Implements https://github.com/G43riko/JavaUtils/blob/master/GLib2/src/main/java/org/utils/QuadIterator.java
https://github.com/G43riko/JavaUtils/tree/master/GLib2/src/main/java/org/utils/noises
https://github.com/G43riko/JavaUtils/blob/master/GLib2/src/test/java/org/glib2/math/Bresenhams3D.java
https://github.com/G43riko/JavaUtils/blob/master/GLib2/src/main/java/org/utils/GeometryUtils.java

## Structure of src directory

- [index](src/index.html)
- [MockData](src/MockData.ts)
- _[components](src/components)_
  - [FileManager](src/components/file-manager.ts)
  - [paginator](src/components/paginator.ts)
- _[dom](src/dom)_
  - [CanvasManager](src/dom/canvas-manager.ts)
  - [CanvasUtils](src/dom/canvas-utils.ts)
  - [Checkers](src/dom/deprecated/Checkers.ts)
  - [ElementBuilder](src/dom/element-builder.ts)
  - [DomGet](src/dom/dom-get.ts)
- _[enums](src/enums)_
  - [encodings](src/enums/enodings.enum.ts)
  - [file-types](src/enums/file-types.enum.ts)
  - [http-status-codes](src/enums/http-status-codes.enum.ts)
  - [keys](src/enums/keys.enum.ts)
- _[errors](src/errors)_
  - [GLogger](src/components/logger/g-logger.ts)
  - [NotBrowserException](src/errors/not-browser.exception.ts)
  - [NullPointerException](src/errors/null-pointer.exception.ts)
  - [WrongParameterException](src/errors/wrong-parameter.exception.ts)
  - [WrongTypeException](src/errors/wrong-type.exception.ts)
- _[math](src/math)_
  - [Vector2f](src/math/vector2f.ts)
- _[models](src/models)_
  - [gender](src/models/gender.ts)
- _[utils](src/utils)_
  - [ArrayUtils](src/utils/deprecated/ArrayUtils.ts)
  - [DomUtils](src/utils/DomUtils.ts)
  - [FileUtils](src/utils/FileUtils.ts)
  - [MathUtils](src/utils/deprecated/MathUtils.ts)
  - [MiscUtils](src/utils/deprecated/MiscUtils.ts)
  - [ObjectUtils](src/utils/deprecated/ObjectUtils.ts)
  - [ProcessUtils](src/utils/deprecated/ProcessUtils.ts)
  - [Runtime](src/utils/Runtime.ts)
  - [StringCheckers](src/utils/deprecated/StringCheckers.ts)
  - [StringUtils](src/utils/deprecated/StringUtils.ts)
  - [TimeUtils](src/utils/time-utils.ts)

## Release steps

1. change version in `package.json`
2. run all tests with `npm test`
3. run `npm run release`
4. run `npm publish`
5. commit and push data to [github](https://github.com/G43riko/GTools)
6. wait for the build to complete on [travis](https://travis-ci.org/G43riko/GTools) and check for success
7. create new release on [github](https://github.com/G43riko/GTools/releases)

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