0.2.1 • Published 4 months ago

@pantelwar/js-utils v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Pantelwar Utilities

Description

This is a general purpose utility package for usage in javascript or typescript projects. All the functions here are well tested and used widely multiple times

Kindly check this package before making your own utilities in the project.

API Reference

Visit here for a complete API Reference and details about all the functions with some examples

Installation

For yarn users: (recommended)

yarn add @pantelwar/js-utils

For npm users:

npm install @pantelwar/js-utils

Usage

The API is pretty straightforward to use, just directly import the utility function you want and call it straight from your javascript (or typescript) file. Please check out the full API Reference for all functions.

import { paramCase } from "@pantelwar/js-utils";

console.log(paramCase("Privacy Policy")); // "privacy-policy"

Guidelines

Here are some guidelines to use some of the functions of this package.

  • For using the date, create another format-time.ts file in the utils directory of the project, since every project will have different date standards.
  • The dom package must only be used in browser contexts, so no SSR or node.js environments. It can contain DOM APIs such as document or localStorage which are not available in server side contexts.
  • The formik package is used to get make the mui's input components react to error states, it should only be used if the project is using formik and mui both, although we can still use it with any UI library with some output mapping.
0.2.1

4 months ago

0.2.0

4 months ago

0.1.2

7 months ago

0.1.1

7 months ago

0.1.0

7 months ago