@javiert.dev/essentials
v1.0.0
Published
A library with a variety of useful functions that I consider essential in most web development projects
Maintainers
Readme
Lee esto en español.
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 and includes the interfaces and typing of the functions.
Documentation
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. There awaits the complete guide, practical examples, and all the secrets to mastering jtEssentials like a true professional.
Installation
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:
npm install @javiert.dev/essentialsyarn add @javiert.dev/essentialspnpm add @javiert.dev/essentialsAnd that's it! You now have jtEssentials installed and ready to take your projects to the next level!
[!TIP] jtSnippets supports this project!
Examples
Here I show you examples of a few of the many utilities this library can offer you.
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: hqav86b2th7Remember to check the documentation for more details on each incredible utility and its options. Your creativity will be the limit.
- crypto-js: For encrypting and decrypting data.




