@solarview/idc_utils
v0.0.78
Published
## Instalação
Downloads
371
Maintainers
Keywords
Readme
IDC_UTILS
Instalação
IDC_UTILS requer Node.js v14.19.3+ para rodar.
npm i @solarview/idc_utils
Variáveis de ambiente do projeto principal
AWS_BUCKET=
AMBIENTE=
AWS_DIRNAME=
AWS_REGION=
AWS_S3_ACCESS_KEY_ID=
AWS_S3_SECRET_ACCESS_KEY=
AWS_S3_URL=
RECAPTCHA_API_KEY=
TWO_CAPTCHA_API_KEY=
Recursos
checkAwsFileExist(url: string): boolean
checkLocalFileExist(path: string, timeout?: number): boolean
deleteDirectoryWhenEmpty(path: string, timeout?: number): boolean
uploadAWS(path: string, fileName: string, ambiente: string)
browser2Captcha(headless?: boolean): Instância de browser com puppeteer com 2captcha
browserDefault(headless?: boolean): Instância de browser com puppeteer sem plugins
browserRecaptcha(headless?: boolean): Instância de browser com puppeteer com Recaptcha
getNumberMonthByString(stringMonth: string): string
installationCodeFormatter(vallue: string || [string]): valor formatado sem caracteres especiais
usernameFormatter(value: string): valor formatado sem caracteres especiais
s3: Instância da AWS S3
pdf2table(pdfBuffer, callback)
extractData()
requestJson(pdfUrl: string)
passwordDecode()
response()