2.1.12 • Published 2 months ago

00ricardo-utils v2.1.12

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

00ricardo-utils

Javascript Package for utilities

JavaScript

This is a lightweight low dependency package for development and optimization purposes. It has several utility fuctions for:

  • Array Management
  • Object Management
  • Variable and values validation without TypeScript

Installation

npm i 00ricardo-utils

Array Management Functions

FunctionsDescriptionParametersReturn
removeElementFunction that receives an array and removes an specific element by its index and return a new array.Array, IndexArray
removeEmptyElementsFunction that cleans an array. It removes all NULL, undefined and empty strings from the array.ArrayArray
getUniqueValuesFunction that returns unique values from arrayArrayArray
searchFilteringFunction that returns all instances from an Array based on filtering properties.Array, String, ArrayArray

Object Management Functions

FunctionsDescriptionParametersReturn
removePropertyFunction that receives an object and removes an specific property by its name and return a new Object.Object, Property (String)Object
joinMappingFunction that join 2 arrays through property mapping. It receives 2 arrays and 3 property referencesArray, String, Array,String, StringArray
renamePropertyFunction that renames a Object PropertyArray, String, StringObject
groupByFunction that groups an array of objects by a propertyArray, StringObject
aggregateDataFunction that aggregates an array of objects by a propertyArray, String, StringObject

Validation Functions

FunctionsDescriptionParametersReturn
hasValueFunction that receives a value and checks its type, and returns a boolean indicating whether it has a value.Variable (Object, Array, String, Number, etc)Boolean
hasPropertyFunction that checks if an object has a specific property.Object, Property (String)Boolean
validateEmailFunction that validates an emailStringString

React Custom Hooks

FunctionsDescriptionParametersReturn
useDebounce---
useLocalStorage---

Other Functions

FunctionsDescriptionParametersReturn
readFileInfoFunction that reads a file and give useful information like the name, type, size and Base64 Encode.FileObject
getWordsFunction that returns all words from a String.StringArray
convertTimezoneFunction that converts datetime from a TZ to another. It supports custom datetimesString, String, StringObject

Development

Looking forward to optimize solutions and add new utility functions.

License

MIT

© Ricardo Briceño - Portugal

2.1.12

2 months ago

2.1.9

5 months ago

2.1.10

5 months ago

2.1.2

7 months ago

2.1.1

7 months ago

2.1.4

7 months ago

2.1.3

7 months ago

2.1.6

7 months ago

2.1.5

7 months ago

2.1.7

7 months ago

2.0.3

9 months ago

2.1.0

9 months ago

2.0.2

12 months ago

2.0.1

1 year ago

1.2.0

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.3.2

1 year ago

1.2.3

1 year ago

1.3.1

1 year ago

1.2.2

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

2.0.0

1 year ago

1.2.9

1 year ago

1.2.12

1 year ago

1.2.10

1 year ago

1.2.11

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago