@gadeoli/js-helpers-library
v0.0.20
Published
Some simple JS functions in one place
Downloads
13
Readme
JS-mix-functions
Some simple JS functions in one place
Functions
common
- copyToClipboard (better supportted browser copy to clipboard - text)
- getQueryStringParamByName (simple extract param from a given url - default url is used if none passed)
- justNumbersAndLetters
- reorderArrayItem (reorder an array item moving all the others)
- replaceManyStr
- searchManyInArray (check if a item of array B belongs to array A, no object itens supported)
- secureJSONStringify (secure stringify - avoid undefined errors)
files
- downloadBase64File
- downloadBlobFile
- base64StringtoFile
- extractFileMimeFromBase64
- extractFileExtentionFromBase64
- extractFileNameFromDisposition
- getExtensionByMimeType
- image64toCanvasRef
- fixRealSize
- getIntlIdFromErrorCode
- validateFile
- resizeImgFromBase64
- exportToCsv
- saveFile
- getNewSizesFromImgSrc
- binaryToOctet
- readFileURL
fileBuffer
- readFileURL
styles
- handleCssClassnames
time
- addInMinutes (add minutes in a date)
- diffInMinutes (from 2 dates)
- diffInSeconds (from 2 dates)
Use
import {functionName} from '@gadeoli/js-helpers-library';