@sistemas-upax/utils
v1.0.5
Published
Utils for NodeJS code
Downloads
38
Readme
@sistemas-upax/utils
Upax utils for NodeJS code
Table of Contents
Installing
Using npm:
$ npm install @sistemas-upax/utils
Using yarn:
$ yarn add @sistemas-upax/utils
Request services methods
Have been provided security services.
services.encrypt({data: {}})
services.decrypt({data: {}})
Request s3 methods
Have been provided s3.
s3.download(env, bucket, key, file, contentType)
s3.upload(env, bucket, key)
Request alerts methods
Have been provided alerts.
alerts.simpleButton(title, type, message)
alerts.cancelButton(title, type, message)
alerts.serviceNotAvailable()
alerts.simpleInput(input, title, message)
Request unzip methods
Have been provided unzip.
zip.getFile(url)
Promises
@sistemas-upax/utils depends on a native ES6 Promise implementation to be supported. If your environment doesn't support ES6 Promises, you can polyfill.
TypeScript
@sistemas-upax/utils includes TypeScript definitions.
import {services, s3, alerts, zip} from '@sistemas-upax/utils';