# js-basic-utils

> Basic Functions to help users on Javascript Code

Latest version **0.1.0** (published 2018-02-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install js-basic-utils
pnpm add js-basic-utils
yarn add js-basic-utils
bun add js-basic-utils
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-02-03 |
| First published | 2018-02-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Boujee#0002 |
| Maintainers | boujee0002 |
| Keywords | code, easy, basic, javascript |

## Links

- npm: https://www.npmjs.com/package/js-basic-utils
- Repository: github.com/Boujee0002/basic-util
- npm.io page: https://npm.io/package/js-basic-utils

## Dependencies (1)

- [shuffle-array](https://npm.io/package/shuffle-array.md) ^1.0.1

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2018-02-03

## README

# Basic-Util

## Installation
**Run `npm install js-basic-utils` to get Started!**

## Examples / How to Use

**So i know you guys don't know how to code, but this NPM Package will help you guys make it Easier! In fact, here are some examples on how to Use it!**  

**sortStrings Function**
```js
const basicUtil = require('js-basic-utils'); // Require the Package

basicUtil.sortStrings(['Hello!', 'What\'s Up?', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'This is an Example']); // This will Return Z - A [ 'What\'s Up?',  'This is an Example',  'Hello!',  'ABCDEFGHIJKLMNOPQRSTUVWXYZ' ];

/* We can also sort it by A - Z by adding the boolean true */

basicUtil.sortStrings(['Hello!', 'What\'s Up?', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'This is an Example'], true); // This will Return A - Z [ 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'Hello!', 'This is an Example', 'What\'s Up?' ]
```  

**sortNumbers Function**  
```js
const basicUtil = require('js-basic-utils'); // Require the Package

basicUtil.sortNumbers([1, 2, 5, 4, 3]); // Returns 5 - 1 [5, 4, 3, 2 ,1];

/* We can also sort it by 1 - 5 */

basicUtil.sortNumbers([1, 2, 5, 4, 3], true); // Returns 1 - 5 [1 , 2, 3, 4, 5];
```  

**randomNumbers Function**  
```js
const basicUtil = require('js-basic-utils'); // Require the Package

basicUtil.randomNumbers(10); // Chooses a Number between 0 - 10, works for Strings as well!

/* We can also let it use Decimal, if we add false at the end */

basicUtil.randomNumbers(10); // Choose a Number with Decimals between 0 -10, works for Strings as well!

// WARNING: IF YOU USE STRING, AND DID NOT USE NUMBERS, IT WILL RETURN NaN!
```  

**randomizeString Function**  
```js
const basicUtil = require('js-basic-utils'); // Require the Package

basicUtil.randomizeString('THIS IS AWESOME!'); // Randomizes those Strings, might return: I A!MT SHIOEWESS
```  

**randomizeArray Function**  
```js
const basicUtil = require('js-basic-utils'); // Require the Package

basicUtil.randomizeArray(['Hello!', 'Hi!', 'How are you?']); // Picks a random Element from the Array. Might Return: Hi!
```  

## Support
[**Click Here!**](https://discord.gg/s4jHHN)

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