commonjs-tools
v2.8.0
Published
Some use full js functions
Downloads
47
Readme
commonjs-tools
Some utils functions for server / front side
common:
- chunk
- copy
- debounce
- random
- concatWithReverse
- arrayToObject
- flatten
- sample
- shuffle
- range
- loadCollection
- loadData
- search
front:
- header:
- get
- fromHeader
- toHeader
- header:
server: 3. header: * headerForClient * toHeader * fromHeader * headerTokenApp * headerToken * headerEmail * headerAgent * cors * simpleCors 3. request: * getApi * get * sendWithCORS * redirectTo * getFrom * jsonFrom * htmlFrom * requestBase64 3. utils * pagify * uniqIds * uniqOBjects
* collection
Usage
npm install --save-dev commonjs-tools