npm package: @javiert.dev/essentials
Description: A library with a variety of useful functions that I consider essential in most web development projects
Author: javiert.dev
Latest version: 1.0.0

[![@javiert.dev/essentials](https://s6.imgcdn.dev/YKWtzh.png)](https://github.com/javiertdev/jtEssentials)

Lee esto en [español](https://github.com/javiertdev/jtEssentials/blob/main/README.es.md).

Tired of writing the same code over and over for common tasks in your web projects? Looking for ways to speed up your development without sacrificing quality?

**jtEssentials** is your answer.

It's your **essential toolbox** with a collection of functions and utilities that will help you optimize your workflow. From string manipulation to theme management, languages, data generation, encryption, decryption, and much, much more, this package is designed to make your life easier in the world of web development.

> [!NOTE]
> This project is made with [TypeScript](https://www.typescriptlang.org) and includes the interfaces and typing of the functions.

# Documentation

[![Documentation](https://s6.imgcdn.dev/YKWWfV.png)](https://github.com/javiertdev/jtEssentials/wiki)
Ready to simplify your web development and unleash your full potential? 🚀

jtEssentials is not just a collection of functions; they are the tools that will make you code faster, cleaner, and more efficiently. But to discover how each of these **fascinating functions** can transform your workflow and solve those common headaches... you have to explore them in depth!

Dive into the [**Project Wiki**](https://github.com/javiertdev/jtEssentials/wiki). There awaits the complete guide, practical examples, and all the secrets to mastering jtEssentials like a true professional.

# Installation

[![Installation](https://s6.imgcdn.dev/YKWFGv.png)](https://github.com/javiertdev/jtEssentials/wiki)
Getting started with jtEssentials is quick and easy! You just need a package manager like npm, yarn, or pnpm. If you already have one installed, simply run one of the following commands in the root of your project:

```bash
npm install @javiert.dev/essentials
```

```bash
yarn add @javiert.dev/essentials
```

```bash
pnpm add @javiert.dev/essentials
```

And that's it! You now have jtEssentials installed and ready to take your projects to the next level!

> [!TIP]
> [jtSnippets](https://marketplace.visualstudio.com/items?itemName=javiertdev.jt-snippets) supports this project!
> [![jtSnippets](https://s6.imgcdn.dev/YKWw6h.png)](https://marketplace.visualstudio.com/items?itemName=javiertdev.jt-snippets)

## Examples

[![Examples](https://s6.imgcdn.dev/YKWLyo.png)](https://github.com/javiertdev/jtEssentials/wiki)

Here I show you examples of a few of the many utilities this library can offer you.

```typescript
import jtEssentials from '@javiert.dev/essentials';

let textCapitalized = jtEssentials.text.capitalize('hola mundito, ¿cómo está todo?',true);
//output: Hola Mundito, ¿Cómo Está Todo?

let textCapitalized2 = jtEssentials.text.capitalize('¿qué sucede?');
//output: ¿Qué sucede?

let textCamelCase = jtEssentials.text.camelCase('hola mundazo');
//output: HolaMundazo

// Convierte a string casi cualquier variable, puede ser un objeto, array, string, number (Y lo puedes cifrar).
let dataStringified = jtEssentials.data.stringify({name:'Javiert', hobby:'Programar'},'ClaveDeCifrado');
//output (string): U2FsdGVkX1+0v...

// Luego lo puedes regresar al mismo tipo de dato que fue alguna vez (Y decifrar).
let result = jtEssentials.data.parse(dataStringified,'ClaveDeCifrado');
//output: (object): {name:'Javiert', hobby:'Programar'}

// Generadores
let loremIpsum = jtEssentials.gen.loremIpsum(100); //Cantidad de palabras
//output: Volutpat pharetra blandit cras suspendisse quisque ac volutpat a amet accumsan, proin per...

let password = jtEssentials.gen.password(12);
//output: hqav86b2th7
```

Remember to check the [**documentation**](https://github.com/javiertdev/jtEssentials/wiki) for more details on each incredible utility and its options. Your creativity will be the limit.

[![External Dependencies](https://s6.imgcdn.dev/YKWegn.png)](https://www.npmjs.com/package/@javiert.dev/essentials?activeTab=dependencies)

- [crypto-js](https://www.npmjs.com/package/crypto-js): For encrypting and decrypting data.