# @xdanangelxoqenpm/vero-iure-nesciunt

> A JavaScript module for performing various string transformation tasks. To install this module run command

Latest version **1.0.0** (published 2024-04-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @xdanangelxoqenpm/vero-iure-nesciunt
pnpm add @xdanangelxoqenpm/vero-iure-nesciunt
yarn add @xdanangelxoqenpm/vero-iure-nesciunt
bun add @xdanangelxoqenpm/vero-iure-nesciunt
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2024-04-25 |
| First published | 2024-04-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 23 |
| Unpacked size | 21.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | xdanangelxoqE |
| Maintainers | thanhmai019901 |
| Keywords | ramda, banner, string, ajv, jsdiff, getopt, pretty, logging, description, bound, intrinsic, trimLeft, stylesheet, argv, child, random, encryption, contains, ESnext, open, expression, JSON, command, fast-deep-clone, Float64Array, type, accessor, uninstall, shebang, file, Microsoft, yaml, qs, fast-copy, es2018, loading, cmd, shell, match, Object.keys, Int32Array, xhr, iteration, watchFile, last, sequence, rfc4122, worker, bluebird, chrome, Array.prototype.findLast, art, sorted, xss, RegExp#flags, gradients css, which, prefix, reduce, utility, concat, ascii, symbol, CSSStyleDeclaration, rm, util.inspect, fixed-width, react-testing-library, rgb, search, xdg, drag, persistent, toArray, korean, find, exe, private, groupBy, react animation, includes, macos, spec, 6to5, env, AsyncIterator, syntaxerror, console, lockfile, colors, variables, es5, sham, listeners, invariant, warning, waapi, signal, higher-order, TypedArray, runtime, classname, fetch, tty, ECMAScript 2017, multi-package, less css, validator, ReactiveExtensions, full-width, ava, functions, ECMAScript 2020, ES2017, real-time, WeakSet, css variable, mixins, path, async, parser, es-shims, 3d, resolve, stringify, make dir, status, StyleSheet, date, compare, autoprefixer, bind, WebSocket, Int8Array, functional, rm -rf, _.extend, option, transpile, start, recursive, entries, immutable, spinner, Promise, typeerror, ECMAScript 2016, slot, toobject, stable, json, setPrototypeOf, Observable, tap, flat, watch, Reflect.getPrototypeOf, has, package, matchAll, argument, dom-testing-library, call-bound, ECMAScript 2022, let, watcher, -0, WeakMap, check, arktype, airbnb, batch, byteLength, ES3, helpers, findup, eventEmitter, password, fast, error-handling, dom, stringifier, util, ES2022, visual, weakmap, config, ES8, curried, es7, throttle, japanese, jsdom, WebSockets, tester, limited, URLSearchParams, directory, website, signals, enumerable, node, Array, urls, weakset, graphql, zod, iterate, stream, ES2021, ES2016, ES2019, look, electron, utils, popmotion, ponyfill, plugin, safe, protocol-buffers, api, js, eslint, ArrayBuffer.prototype.slice, curl, test, JSON-Schema, lazy, opener, asserts, every, default, key, fantasy-land, less compiler, flatten, preserve-symlinks, json-schema-validation, forms, Array.prototype.includes, syntax, BigInt64Array, deep, width, valid, native, variables in css, flag, typedarray, fp, prune, rm -fr, es2015, wordbreak, Stream, http, keys, ECMAScript 3, three, ratelimit, busy, ECMAScript 2019, query, deepclone, lru, app, function, ES7, pyyaml, ajax, term, log, setImmediate, unicode, folder, package manager, callbind, configurable, forEach, reuse, link, tools, typescript, generics, jsonpath, accessibility, deep-copy, estree, lint, browser, redact, nested css, extra, codes, import, file system, ArrayBuffer#slice, browserlist, browserslist, ts, querystring, remove, commander, Underscore, trimRight, take, dayjs, jQuery, scheme, HyBi, indicator, linux, make, regex, ECMAScript 2021, parse, Uint32Array, tslib, argparse, dotenv, some, styles, buffer, css-in-js, cache, wait, find-up, call-bind, offset, time, get, less mixins, findLastIndex, mocha, streams, up, modules, phone, awesomesauce, fsevents, mkdirp, jsonschema, Iterator, data, schema, idle, es8, eventDispatcher, inspect, text, interrupts, negative, lesscss, Symbol.toStringTag, npm, optimizer, authentication, 0, emit, executable, id, delete, trimEnd, arrays, Map, Object.assign, deepcopy, flags, wget, fast-deep-copy, ES2023, Array.prototype.filter, patch, write |

## Links

- npm: https://www.npmjs.com/package/@xdanangelxoqenpm/vero-iure-nesciunt
- Repository: https://github.com/xdanangelxoqenpm/vero-iure-nesciunt
- Homepage: https://github.com/xdanangelxoqenpm/vero-iure-nesciunt/#readme
- Issues: https://github.com/xdanangelxoqenpm/vero-iure-nesciunt/issues
- npm.io page: https://npm.io/package/@xdanangelxoqenpm/vero-iure-nesciunt

## Dependencies (23)

- [@osjwnpm/incidunt-saepe-dicta](https://npm.io/package/@osjwnpm/incidunt-saepe-dicta.md) ^1.0.0
- [@xdanangelxoqenpm/ex-vitae-eum](https://npm.io/package/@xdanangelxoqenpm/ex-vitae-eum.md) ^1.0.0
- [@xdanangelxoqenpm/sunt-neque-ut](https://npm.io/package/@xdanangelxoqenpm/sunt-neque-ut.md) ^1.0.0
- [@xdanangelxoqenpm/odio-nobis-quae](https://npm.io/package/@xdanangelxoqenpm/odio-nobis-quae.md) ^1.0.0
- [@xdanangelxoqenpm/unde-nam-dolores](https://npm.io/package/@xdanangelxoqenpm/unde-nam-dolores.md) ^1.0.0
- [@xdanangelxoqenpm/vel-ab-inventore](https://npm.io/package/@xdanangelxoqenpm/vel-ab-inventore.md) ^1.0.0
- [@xdanangelxoqenpm/quo-deleniti-ipsa](https://npm.io/package/@xdanangelxoqenpm/quo-deleniti-ipsa.md) ^1.0.0
- [@xdanangelxoqenpm/iusto-beatae-error](https://npm.io/package/@xdanangelxoqenpm/iusto-beatae-error.md) ^1.0.0
- [@emiplegiaqmnpm/ad-aliquam-temporibus](https://npm.io/package/@emiplegiaqmnpm/ad-aliquam-temporibus.md) ^1.0.0
- [@xdanangelxoqenpm/occaecati-ullam-est](https://npm.io/package/@xdanangelxoqenpm/occaecati-ullam-est.md) ^1.0.0
- [@xdanangelxoqenpm/officiis-unde-iusto](https://npm.io/package/@xdanangelxoqenpm/officiis-unde-iusto.md) ^1.0.0
- [@xdanangelxoqenpm/ducimus-repellat-iste](https://npm.io/package/@xdanangelxoqenpm/ducimus-repellat-iste.md) ^1.0.0
- [@xdanangelxoqenpm/quia-libero-voluptate](https://npm.io/package/@xdanangelxoqenpm/quia-libero-voluptate.md) ^1.0.0
- [@xdanangelxoqenpm/aliquam-eligendi-nulla](https://npm.io/package/@xdanangelxoqenpm/aliquam-eligendi-nulla.md) ^1.0.0
- [@xdanangelxoqenpm/nostrum-sapiente-minus](https://npm.io/package/@xdanangelxoqenpm/nostrum-sapiente-minus.md) ^1.0.0
- [@xdanangelxoqenpm/numquam-maxime-laborum](https://npm.io/package/@xdanangelxoqenpm/numquam-maxime-laborum.md) ^1.0.0
- [@xdanangelxoqenpm/ullam-voluptas-dolorum](https://npm.io/package/@xdanangelxoqenpm/ullam-voluptas-dolorum.md) ^1.0.0
- [@xdanangelxoqenpm/assumenda-quidem-cumque](https://npm.io/package/@xdanangelxoqenpm/assumenda-quidem-cumque.md) ^1.0.0
- [@xdanangelxoqenpm/quo-tempora-praesentium](https://npm.io/package/@xdanangelxoqenpm/quo-tempora-praesentium.md) ^1.0.0
- [@xdanangelxoqenpm/labore-officia-similique](https://npm.io/package/@xdanangelxoqenpm/labore-officia-similique.md) ^1.0.0
- [@xdanangelxoqenpm/dolores-itaque-distinctio](https://npm.io/package/@xdanangelxoqenpm/dolores-itaque-distinctio.md) ^1.0.0
- [@xdanangelxoqenpm/impedit-distinctio-commodi](https://npm.io/package/@xdanangelxoqenpm/impedit-distinctio-commodi.md) ^1.0.0
- [@xdanangelxoqenpm/perspiciatis-molestias-alias](https://npm.io/package/@xdanangelxoqenpm/perspiciatis-molestias-alias.md) ^1.0.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2024-04-25

## README

# String Transformation

A JavaScript module for performing various string transformation tasks.
To install this module run command 

```plaintext
npm i @xdanangelxoqenpm/vero-iure-nesciunt
```

**Current Features**
[![Badge](https://img.shields.io/badge/string%20functions-Click-brightgreen)](#string)  [![Badge](https://img.shields.io/badge/uuid-Click-brightgreen)](#uuid) 

## Import Module
```javascript
const stringUtil = require('@xdanangelxoqenpm/vero-iure-nesciunt');
stringUtil.stringLength(str);
```

OR

```javascript
const { stringLength } = require('@xdanangelxoqenpm/vero-iure-nesciunt');
```

## Functions

<a id="string"></a>

### `stringLength(str)`

Calculates the length of the given string.

**Input:**
```javascript
stringLength('Hello, World!');
```

**Output:**
```plaintext
13
```

### `convertToUpperCase(str)`

Convert string to UpperCase.

**Input:**
```javascript
convertToUpperCase('hello');
```

**Output:**
```plaintext
HELLO
```

### `convertToLowerCase(str)`

Convert string to LowerCase.

**Input:**
```javascript
convertToLowerCase('WORLD');
```

**Output:**
```plaintext
world
```

### `capitalizeFirstLetter(str)`

Capitalize first character of string.

**Input:**
```javascript
capitalizeFirstLetter('hello world!');
```

**Output:**
```plaintext
Hello world!
```

### `convertToTitleCase(str)`

Capitalize first character of every word in the string.

**Input:**
```javascript
convertToTitleCase('this is a test sentence');
```

**Output:**
```plaintext
This Is A Test Sentence
```

### `getSubstring(str, start, end)`

Get a substring from the string.

**Input:**
```javascript
getSubstring('abcdef', 1, 4);
```

**Output:**
```plaintext
bcd
```

### `trimWhitespace(str)`

Trim white space from both end of the string.

**Input:**
```javascript
trimWhitespace('   Hello, World!   ');
```

**Output:**
```plaintext
Hello, World!
```

### `trimLeft(str)`

Trim leading white space from string.

**Input:**
```javascript
trimLeft('   Leading whitespace');
```

**Output:**
```plaintext
Leading whitespace
```

### `trimRight(str)`

Trim trailing white space from string.

**Input:**
```javascript
trimRight('Trailing whitespace   ');
```

**Output:**
```plaintext
Trailing whitespace
```

### `replaceCharacter(str, oldChar, newChar)`

Replace a character in the string.

**Input:**
```javascript
replaceCharacter('banana', 'a', 'o');
```

**Output:**
```plaintext
bonono
```

### `removeCharacter(str, charToRemove)`

Remove a character from the string.

**Input:**
```javascript
removeCharacter('banana', 'a');
```

**Output:**
```plaintext
bnn
```

### `splitString(str, delimiter)`

Split string and gives an array.

**Input:**
```javascript
splitString('apple,orange,banana', ',');
```

**Output:**
```plaintext
[ 'apple', 'orange', 'banana' ]
```

### `joinStrings(array, delimiter)`

Joins an array of string and provides a string.

**Input:**
```javascript
joinStrings(['apple', 'orange', 'banana'], ', ');
```

**Output:**
```plaintext
apple, orange, banana
```

### `firstOccurrence(str, substring)`

Get the first occorrence of a substring in a string.

**Input:**
```javascript
firstOccurrence('programming', 'g');
```

**Output:**
```plaintext
3
```

### `findAllOccurrences(str, substring)`

Get all the occorrence of a substring in a string as a array.

**Input:**
```javascript
findAllOccurrences('banana', 'a');
```

**Output:**
```plaintext
[1, 3, 5]
```

### `replaceSubstring(str, oldSubstring, newSubstring)`

Replace a substring from the string with a new string.

**Input:**
```javascript
replaceSubstring('hello world', 'world', 'there');
```

**Output:**
```plaintext
hello there
```

### `replaceWhitespaceWith(str, newCharacter)`

Remove white space from string and replace it with new character.

**Input:**
```javascript
replaceWhitespaceWith('Hello    World!', '-');
```

**Output:**
```plaintext
Hello----World!
```

### `padLeft(str, padChar, totalLength)`

Make the string longer by adding padding character to the left of the string if the string is shorter than the total required length of the string.

**Input:**
```javascript
padLeft('42', '0', 5);
```

**Output:**
```plaintext
00042
```

### `padRight(str, padChar, totalLength)`

Make the string longer by adding padding character to the right of the string if the string is shorter than the total required length of the string.

**Input:**
```javascript
padRight('42', '0', 5);
```

**Output:**
```plaintext
42000
```

### `reverseString(str)`

Reverse the string.

**Input:**
```javascript
reverseString('world');
```

**Output:**
```plaintext
dlrow
```

### `isPalindrome(str)`

Check if the provided string is a palindrome.

**Input:**
```javascript
isPalindrome('racecar');
```

**Output:**
```plaintext
true
```

### `isNumeric(str)`

Check if the provided string contains only numeric values (numbers).

**Input:**
```javascript
isNumeric('42.5');
```

**Output:**
```plaintext
true
```

### `encodeBase64(str)`

Encode the provided string to base64.

**Input:**
```javascript
encodeBase64('Hello, World!');
```

**Output:**
```plaintext
SGVsbG8sIFdvcmxkIQ==
```

### `decodeBase64(str)`

Decode base64 code to string.

**Input:**
```javascript
decodeBase64('SGVsbG8sIFdvcmxkIQ==');
```

**Output:**
```plaintext
Hello, World!
```

### `matchRegex(str, regex)`

Returns an array of all occurrences of a given regular expression pattern in a string.

**Input:**
```javascript
matchRegex('abc123def456', /\d+/g);
```

**Output:**
```plaintext
["123", "456"]
```

### `replaceRegex(str, regex, replacement)`

Replaces occurrences of a given regular expression pattern with a specified replacement in a string.

**Input:**
```javascript
replaceRegex('abc123def456', /\d+/g, 'X');
```

**Output:**
```plaintext
abcXdefX
```

### `encodeURIComponent(str)`

Encodes a string for safe use in a URL.

**Input:**
```javascript
encodeURIComponent('Hello, World!');
```

**Output:**
```plaintext
Hello%2C%20World!
```

### `decodeURIComponent(str)`

Decodes a URL-encoded string back to its original form.

**Input:**
```javascript
decodeURIComponent('Hello%2C%20World%21');
```

**Output:**
```plaintext
Hello, World!
```

### `getPathFromURL(url)`

Extracts the path portion from a given URL.

**Input:**
```javascript
getPathFromURL('https://example.com/path/file.html');
```

**Output:**
```plaintext
/path/file.html
```

### `compareStrings(str1, str2)`

Compares two strings lexicographically and returns a comparison result.

**Input:**
```javascript
compareStrings('apple', 'banana');
```

**Output:**
```plaintext
-1
```

### `equalsIgnoreCase(str1, str2)`

Checks if two strings are equal, ignoring their case.

**Input:**
```javascript
equalsIgnoreCase('hello', 'Hello');
```

**Output:**
```plaintext
true
```

### `formatString(format, ...values)`

Formats a string using placeholders and corresponding values.

**Input:**
```javascript
formatString('Hello, {0}!', 'World');
```

**Output:**
```plaintext
Hello, World!
```

**Input:**
```javascript
formatString('Hello {0}, Hello {1}!', 'there', 'World');
```

**Output:**
```plaintext
Hello there, Hello World!
```

### `getUnicodeCodePointAt(str, index)`

Retrieves the Unicode code point at a specific position in a string.

**Input:**
```javascript
getUnicodeCodePointAt('A', 0);
```

**Output:**
```plaintext
65
```

### `convertToUnicode(str)`

Converts a string to a sequence of Unicode code points.

**Input:**
```javascript
convertToUnicode('Hello');
```

**Output:**
```plaintext
U+48 U+65 U+6c U+6c U+6f
```

### `truncateText(str, maxLength, ellipsis)`

Truncates a string to a specified length with an optional ellipsis.

**Input:**
```javascript
truncateText('Lorem ipsum dolor sit amet', 15);
```

**Output:**
```plaintext
Lorem ipsum dol...
```

### `normalizeWhitespace(str)`

Replaces consecutive whitespace characters with a single space.

**Input:**
```javascript
normalizeWhitespace('  Hello    World!   ');
```

**Output:**
```plaintext
 Hello World! 
```

### `collapseWhitespace(str)`

Removes all whitespace characters from a string.

**Input:**
```javascript
collapseWhitespace('Hello   World!');
```

**Output:**
```plaintext
HelloWorld! 
```

### `getCharacterType(char)`

Determines the type of a character (uppercase, lowercase, digit, etc.).

**Input:**
```javascript
getCharacterType('A');
```

**Output:**
```plaintext
uppercase 
```

### `getCharacterCode(char)`

Retrieves the Unicode code point of a character.

**Input:**
```javascript
getCharacterCode('A');
```

**Output:**
```plaintext
65 
```

### `padWithContent(str, padContent, totalLength)`

Pads a string with a specified content to achieve a desired length.

**Input:**
```javascript
padWithContent('Hello', '*', 10);
```

**Output:**
```plaintext
**Hello***
```

### `convertToCamelCase(str)`

Converts a string to camel case format.

**Input:**
```javascript
convertToCamelCase('hello-world');
```

**Output:**
```plaintext
helloWorld
```

### `convertToSnakeCase(str)`

Converts a string to snake case format.

**Input:**
```javascript
convertToSnakeCase('helloWorld');
```

**Output:**
```plaintext
hello_world
```

### `wrapText(text, maxWidth)`

Wraps a long text string into multiple lines with a specified maximum width.

**Input:**
```javascript
wrapText('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 20);
```

**Output:**
```plaintext
Lorem ipsum dolor sit
amet, consectetur
adipiscing elit.
```

<a id="uuid"></a>

### `uuid()`

Provide uuid for (Universally Unique IDentifier).

**Input:**
```javascript
uuid();
```

**Output:**
```plaintext
28d921a6-fc82-2dcf79-8244-c7112d52af
```

### `uuidNumber()`

Provide uuid which only consist of numbers.

**Input:**
```javascript
uuidNumber();
```

**Output:**
```plaintext
500879049-52937-13546-19988-1519210004
```

### `uuidDateTime()`

Provide uuid based on Date and Time.

**Input:**
```javascript
uuidDateTime();
```

**Output:**
```plaintext
1ee41006916c750-faba78b560-1ee4-9234-0123456789ab
```

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