dudsjs-util
v1.0.1
Published
DudsJS-Util is a JavaScript library designed for streamlined data management through a collection of utility functions. Tailored to enhance the efficiency of data handling in applications, DudsJS-Util provides a range of functions encompassing data transf
Downloads
10
Maintainers
Readme
DudsJs Util
DudsJS-Util is a JavaScript library designed for streamlined data management through a collection of utility functions. Tailored to enhance the efficiency of data handling in applications, DudsJS-Util provides a range of functions encompassing data transformation, validation, and manipulation. With an intuitive and versatile set of tools, this library simplifies complex data operations, empowering developers to efficiently structure, validate, and manipulate data within their projects. Whether it's transforming data structures or validating inputs, DudsJS-Util serves as a valuable resource for developers seeking to enhance the functionality and maintainability of their JavaScript applications.
Installation
$ npm install dudsjs-util
# or use
$ yarn add dudsjs-util
Usage
$ const util = require('dudsjs-util')
# or use
$ import * as util from 'dudsjs-util'
Example
Below is an example for number
$ const {summationNumber} = require('dudsjs-util')
$ const [a,b] = [10,20]
$ console.log(summationNumber(a,b)) #result is 30
Below is an example for string
$ const {lowerCaseString} = require('dudsjs-util')
$ const stringData = 'Hello World'
$ console.log(lowerCaseString(stringData)) #result is 'hello world'
Below is an example for arrays
$ const {replaceData} = require('dudsjs-util')
$ const data = [10,20,30]
$ console.log(replaceData(data,1,50)) #result is [10,50,30]