usuals
v1.0.4
Published
Usual utility functions for JavaScript
Downloads
3
Maintainers
Readme
The 'usuals' Library
This is a library [under development] for making a developer's life easier that includes all the common utility functions of frequent use.
Installation
npm i usuals
Usage
import * as usuals from "usuals";
Object Function Example
isObjectEmpty(inputObject)
Checks if a JavaScript Object is empty (inclusive of null
and undefined
)
const inputObject1 = {};
const inputObject2 = { foo: "bar" };
// Returns true
usuals.objectFunctions.isObjectEmpty(inputObject1);
// Returns false
usuals.objectFunctions.isObjectEmpty(inputObject2);
String Function Example
generateLowerCaseString(10)
Returns a lowercase string of specified length
// Returns a value with 14 random characters. [Example - vjjdnmhjlgdgwc]
const str = usuals.stringFunctions.generateLowerCaseString(14);
Side Note:
- Currently we only have 2 contributors to this project.
- Do write to [email protected] should you want to be a part of this.
How to report bugs and issues?
- Any bugs/issues reported would help improve the "usuals" library.
- Please do if you stumble upon them. You have our gratitude!
To report bugs and issues please use the GitHub issue reporting tool: https://github.com/reddy-hari/usuals/issues.
Contribute!
Pull Requests are highly encouraged and appreciated.
Please :star: the repo if you like the project.