@devcubyn/core
v4.4.2
Published
## Installation Core is written with es7 and have to be transpilled.
Downloads
20
Keywords
Readme
core
Installation
Core is written with es7 and have to be transpilled.
Usage
First:
npm install --save @devcubyn/core
And let's go !
// all dir can be required
import <xx> from '@devcubyn/core/<dir>'
// example:
import transform from '@devcubyn/core/diacritics'
transform('cubYn');
special cases
to use logger you must specify a global LOG_PATH
requireAll
require all .js and .json files only and doesn't return exported vars
Core modules
carriers
Get the carrier name or url for a given trackingNumber.
converters
Convert collections to xls, csv, ...
country
Get the iso code for a country (work only for English and French). Translations: fr/en translations for ISO codes (AC, IC, AN added for legacy purpose)
diacritics
Perform some transformation on string to do things like "deep" string comparation.
errors
Reusable errors between projects.
flatten
Flatten Object or Array.
logger
Have something to log ? Just require me !
middlewares
Tired of the lack of support for promises by Express shoot and list do it and more.
modelUtils
Reusable utility through various projects
parsers
Parsers for .xls, .xlsx, .ods, and .csv files.
require-all
Just require the whole directory.
S3
Abstraction for AWS S3 and s3fs with some utils.
filter
Some reusable filters (displayName, ...).