0.0.20 • Published 2 years ago
@gadeoli/js-helpers-library v0.0.20
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';
Sources
0.0.20
2 years ago
0.0.18
2 years ago
0.0.19
2 years ago
0.0.16
2 years ago
0.0.17
2 years ago
0.0.13
3 years ago
0.0.14
3 years ago
0.0.15
3 years ago
0.0.10
3 years ago
0.0.12
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago