Skip to content

reddy-hari/usuals

Repository files navigation

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.

Version GitHub Pull Requests GitHub Issues GitHub Code Size NPM Total Downloads GitHub Fork

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 harireddy05@gmail.com 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 ⭐ the repo if you like the project.

About

This is a library for making dev life easier that includes all the common JavaScript utility functions of frequent use.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published