# rexar-tools

> Some Useful Functions.

Latest version **2.8.0** (published 2023-04-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install rexar-tools
pnpm add rexar-tools
yarn add rexar-tools
bun add rexar-tools
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.8.0 |
| Published | 2023-04-23 |
| First published | 2022-06-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.9 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Davut Özgür Süküti |
| Maintainers | rexardev |
| Keywords | tools, utils, rexar-tools, basic, useful, functions, useful-functions, useful-methods, useful-module, useful-properties |

## Links

- npm: https://www.npmjs.com/package/rexar-tools
- Repository: https://github.com/davutozgursukuti4531/rexar-tools
- Homepage: https://github.com/davutozgursukuti4531/rexar-tools#readme
- Issues: https://github.com/davutozgursukuti4531/rexar-tools/issues
- npm.io page: https://npm.io/package/rexar-tools

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.27.2

## Recent versions

- 2.8.0 (latest) — 2023-04-23
- 2.7.0 — 2022-09-03
- 2.6.0 — 2022-08-27
- 2.5.0 — 2022-08-27
- 2.4.0 — 2022-08-19
- 2.3.0 — 2022-07-16
- 2.2.0 — 2022-07-06
- 2.1.0 — 2022-06-03
- 2.0.0 — 2022-06-02

## README

# Rexar-Tools

![Image](https://img.shields.io/npm/dt/rexar-tools.svg?color=%2351FC0&maxAge=3600)
![Image](https://img.shields.io/npm/v/rexar-tools?color=red&label=rexar-tools)

Some Useful Functions.

# How to Install
### npm:
`npm i rexar-tools`
### yarn:
`yarn add rexar-tools`

# 2.8.0 news:
- fixed esm bug.



# Functions
### Importing Module
CommonJS:
```js
const RTools = require("rexar-tools").default
```
ESModule:
```mjs
import RTools from "rexar-tools"
//or
const RTools = await import("rexar-tools/esm/index.mjs").then(m => m.default)
```
TypeScript:
```ts
import RTools from "rexar-tools"
```
```js
//Type Methods
RTools.numberify("123")//Returns 123
RTools.stringify(123)//Returns "123"
RTools.dateify("2022-06-02")// Returns 2022-06-02T00:00:00.000Z
RTools.regexify(" ")//Returns / /
RTools.booleanify(1)//Returns true
RTools.bigintify(123)//Returns 123n
RTools.arrayify("foo bar")//Returns [ "foo bar" ]

RTools.isNumber("123")//Returns false
RTools.isNumber(RTools.numberify("123"))//Returns true
RTools.isString(123)//Returns false
RTools.isString(RTools.stringify(123))//Returns true
RTools.isDate("foo bar")//Returns false
RTools.isDate(RTools.dateify("2022-06-02"))//Returns true
RTools.isRegex(1221)//Returns false
RTools.isRegex(RTools.regexify(" "))//Returns true
RTools.isBoolean(5412)//Returns false
RTools.isBoolean(RTools.booleanify(1))//Returns true
RTools.isBigInt(512)//Returns false
RTools.isBigInt(RTools.bigintify(1))//Returns true
RTools.isObject(31)//Returns false
RTools.isObject({
    foo: "bar"
})//Returns true


//Date Methods
RTools.getDayWithText()//Returns What Today Is From Days
RTools.getMonthWithText()//Returns What ToMonth Is From Months
RTools.getWeek()//Returns What Week We Are.
RTools.getUTCWeek()//Returns the UTC Week We Are.

//Time Methods
await RTools.wait(1000)//If Used Inside a Function, Makes the Function Wait for Specified Time.
//or
RTools.wait(1000).then(v => v)//If Used Inside a Function, Makes the Function Wait for Specified Time.


//Request Methods
await RTools.npm("rexar-tools")//Assigns the data of the specified NPM package.
//or
RTools.npm("rexar-tools").then(v => v)//Assigns the data of the specified NPM package.
await RTools.yarn("rexar-tools")//Assigns the data of the specified Yarn package.
//or
RTools.yarn("rexar-tools").then(v => v)//Assigns the data of the specified Yarn package.
```

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