1.0.4 • Published 2 months ago

ravirala-sample-js-utils v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

sample pacakage to test

import using module

Javascript Utilities

A Sample package that lets you to get the solutions for javascript utility operations.

Installation

Install my-project with npm

  npm i ravirala-sample-js-utils

Usage/Examples

1.Count charecters in a string and response no of accurences

import {ravirala} from "ravirala-sample-js-utils"
const result = ravirala.countChars("MaheshNetha");
console.log(result)

2.To find the factorial of given number

import {ravirala} from "ravirala-sample-js-utils"
const result = ravirala.factorial(3);
console.log(result)
output : 6

const result = ravirala.factorial(3,(val,err)=>{
    // if there is error it logs error else value will be returned
});

2.To find the largest difference among the interger elements in array

import {ravirala} from "ravirala-sample-js-utils"
const result = ravirala.largestDifference([1,3,5]);
console.log(result)
output : 4

const result = ravirala.largestDifference([4,3,6],(val,err)=>{
    // if there is error it logs error else value will be returned here o/p : 3
});

Used By

This project is used by the following companies:

  • Techneth
  • SSS netha
  • Mahesh Raviral

Tech Stack

Client: Javascript,typescript

Server: Node

Authors